Updating debug ROM to first check if real ROM has been inserted

This commit is contained in:
The Gears of Progress
2026-01-19 15:32:53 -05:00
parent a56596afcd
commit 1acbe99f93
4 changed files with 19 additions and 11 deletions

View File

@@ -16,14 +16,14 @@
extern rom_data curr_GBA_rom;
rom_data::rom_data() {}
bool rom_data::load_rom()
bool rom_data::load_rom(bool debug)
{
u8 rom_list_buffer[2048];
u32 rom_list_size;
const u8 *compressed_rom_list;
const u8 *cur;
if (IGNORE_GAME_PAK)
if (debug)
{
gamecode = DEBUG_GAME;
version = DEBUG_VERS;