feat: replace Gamepak

This commit is contained in:
2023-03-10 02:50:05 -06:00
parent f8477714ae
commit 5adbc354d6
3 changed files with 24 additions and 1 deletions

View File

@@ -70,7 +70,10 @@ pub fn draw(state: *State, tex_id: GLuint, cpu: *Arm7tdmi) void {
defer nfd.freePath(file_path);
log.info("user chose: \"{s}\"", .{file_path});
// emu.loadRom(cpu, file_path);
emu.replaceGamepak(cpu, file_path) catch |e| {
log.err("failed to replace GamePak: {}", .{e});
break :blk;
};
}
}
}