From 2bc5bdc3106d2e24b97f3e78d4e5d3d82c21723e Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 15 Dec 2022 06:27:41 -0400 Subject: [PATCH] fix: fix errors in memory-map xml --- src/Packet.zig | 2 ++ src/Server.zig | 29 ++++++++++++----------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/Packet.zig b/src/Packet.zig index f1adbd3..b3f33fb 100644 --- a/src/Packet.zig +++ b/src/Packet.zig @@ -181,6 +181,8 @@ pub fn parse(self: *Self, allocator: Allocator, emu: Emulator) !String { const offset_str = tokens.next() orelse return .{ .static = "E9999" }; const length_str = tokens.next() orelse return .{ .static = "E9999" }; + log.info("Providing GBA memory map", .{}); + const offset = try std.fmt.parseInt(usize, offset_str, 16); const length = try std.fmt.parseInt(usize, length_str, 16); diff --git a/src/Server.zig b/src/Server.zig index 5af0acc..7b9cb49 100644 --- a/src/Server.zig +++ b/src/Server.zig @@ -39,23 +39,18 @@ pub const target: []const u8 = // Game Pak SRAM isn't included // TODO: Can i be more specific here? pub const memory_map: []const u8 = - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ - \\ ; + \\ + \\ + \\ + \\ + \\ + \\ + \\ + \\ + \\ + \\ + \\ + \\ ; // FIXME: Shouldn't this be a Packet Struct?