fix: make xml memory map optional

Can make it mandatory once I've figured out the whole NDS memory map thing
This commit is contained in:
2024-03-05 23:13:47 -06:00
parent 7ae72ed5a8
commit 309851ab06
2 changed files with 18 additions and 9 deletions

View File

@@ -21,10 +21,10 @@ emu: Emulator,
pub const State = struct {
should_quit: bool = false,
target_xml: []const u8,
memmap_xml: []const u8,
memmap_xml: ?[]const u8,
};
const Xml = struct { target: []const u8, memory_map: []const u8 };
const Xml = struct { target: []const u8, memory_map: ?[]const u8 };
pub fn init(emulator: Emulator, xml: Xml) !Self {
var server = std.net.StreamServer.init(.{});