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:
Philippe Symons
2026-06-04 15:22:46 +02:00
parent 842f5bc259
commit c9ed32e3a1
9 changed files with 172 additions and 129 deletions

View File

@@ -13,6 +13,7 @@ debug_options g_debug_options =
.dont_hide_invalid_pkmn = (false && DEBUG_MODE),
.ignore_dex_completion = (false && DEBUG_MODE),
.force_all_caught = (true && DEBUG_MODE),
.write_cable_data_to_save = (false && DEBUG_MODE),
.write_cable_data_to_save = (u8)WRITE_CABLE_DATA_MODE_OFF,
.load_cable_data_from_save = (u8)WRITE_CABLE_DATA_MODE_OFF,
.display_control_char = (false && DEBUG_MODE)
};