From 8c8d5afe6230433adbb5d27902980cfde848b9be Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 13 Jul 2019 17:17:55 +0300 Subject: [PATCH] Make the debugger compatible with more sym formats --- Core/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/debugger.c b/Core/debugger.c index 357a896..df480f3 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -2172,7 +2172,7 @@ void GB_debugger_load_symbol_file(GB_gameboy_t *gb, const char *path) unsigned bank, address; char symbol[length]; - if (sscanf(line, "%02x:%04x %s", &bank, &address, symbol) == 3) { + if (sscanf(line, "%x:%x %s", &bank, &address, symbol) == 3) { bank &= 0x1FF; if (!gb->bank_symbols[bank]) { gb->bank_symbols[bank] = GB_map_alloc();