mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-09-09 09:35:27 -05:00
Debug option: Write/Load Cable data to/from SRAM
This commit allows you to use the Write Cbl Data debug option and new Load Cbl Data debug option to dump a link's data to SRAM or load it from SRAM and pretend like you got it over the link cable. This is useful for capturing the link process on gameboy and replay + debug it later in an emulator.
This commit is contained in:
@@ -192,9 +192,9 @@ void show_debug_info_screen(void *context, unsigned user_param)
|
||||
}
|
||||
}
|
||||
|
||||
void dbg_set_boolean_flag(void *context, unsigned user_param)
|
||||
void dbg_set_byte_val(void *context, unsigned user_param)
|
||||
{
|
||||
bool *flag_ptr = (bool*)context;
|
||||
u8 *flag_ptr = (u8*)context;
|
||||
*flag_ptr = (user_param != 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user