Commit Graph

29 Commits

Author SHA1 Message Date
GearsProgress
0577a450da Formatting (again) 2026-10-22 15:04:58 -04:00
GearsProgress
f1e2b62e4a Applying formatting and moving libraries into specific folders 2026-10-18 11:07:35 -04:00
GearsProgress
9cd6dc30c3 Updating box graphics and adding Crystal revisions 2026-09-01 18:19:29 -04:00
GearsProgress
c454b2a6e2 Adding in support for all latin languages and versions 2026-08-22 16:28:29 -04:00
GearsProgress
56b0c5d6ec Adding in debug info for packet talking 2026-08-03 16:52:07 -04:00
GearsProgress
50b0cdab72 Merge branch 'release-candidate' into gameboy-payload-update 2026-07-02 23:15:18 -04:00
GearsProgress
075dbfd162 Merge branch 'gameboy-payload-update' into pr/risingPhil/141 2026-06-04 23:23:45 -04:00
GearsProgress
e268ccccf5 Basic link packet implementation 2026-06-04 23:12:09 -04:00
Philippe Symons
c9ed32e3a1 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.
2026-06-04 15:22:46 +02:00
Philippe Symons
1d57c10333 Replace text_data_table with FileContainerReader
text_data_table was very similar in concept to FileContainerReader.

But FileContainerReader is generally more flexible, as it allows you to split up your table into several chunks.
This takes away the worry of these files getting too big to compress.

However, we now have a maintenance duty for the text_tables file, which maps a table index to the list of chunks.

We also need to be careful about every use of FileContainerReader::getPointerToFileInDecompressionBuffer().

Using it is fine when you're dealing with a single chunk or if you're sure the file doesn't span multiple chunks.
But the moment you seek to a different chunk, any pointer obtained from getPointerToFileInDecompressionBuffer()
becomes stale as the decompression buffer gets overwritten.

Still, this function is necessary for high memory pressure situations, such as mystery_gift_builder, because we can't maintain
multiple lineBuffers there.
2026-05-20 13:31:28 +02:00
Philippe Symons
e5e50f5b12 Add entries to debug menu to unlock Mystery Gift and Mystery Events
NOTE: to test this with ignore_game_pak, you need to make sure DEBUG_GAME is set correctly to the game that matches
2026-05-18 12:44:35 +02:00
Philippe Symons
67936645ea revert debug_mode.h change 2026-04-29 00:09:38 +02:00
Philippe Symons
52c24c633b Add EON Ticket for Ruby Sapphire to dbg menu 2026-04-29 00:07:14 +02:00
Philippe Symons
ef661db3c8 Set up menu entry to inject old sea map 2026-04-28 23:53:10 +02:00
Philippe Symons
60c1c34fc1 Add support for debug menu submenus. 2026-04-28 23:12:01 +02:00
Philippe Symons
5a9ce8dabc Add entries to debug menu to unlock Mystery Gift and Mystery Events
NOTE: to test this with ignore_game_pak, you need to make sure DEBUG_GAME is set correctly to the game that matches
2026-04-15 21:20:41 +02:00
Philippe Symons
ffdcd13f80 revert DEBUG_GAME 2026-04-02 11:55:16 +02:00
Philippe Symons
9967fde1ad Fix urgent bug in flash_mem.cpp (I broke checksums) and update PCCS submodule with injection bugfixes 2026-04-02 01:30:09 +02:00
Philippe Symons
c2aad6d82a Show front sprite during pkmn injection 2026-04-01 21:26:19 +02:00
Philippe Symons
fa39c1f60c Merge branch 'release-candidate' into feature/inject-gen3-pokemon-into-pcbox 2026-03-31 19:56:40 +02:00
Philippe Symons
58654de02c Fix MGBA logging bug
va args passing was broken in my initial implementation, causing garbage values to get printed whenever you try
to print an actual argument.

Moreover, I also had a bug in the PTGB_MGBA_XYZ macros.

Sorry, I should've tested it with actual arguments.
2026-03-31 16:40:16 +02:00
Philippe Symons
23253193c1 Merge branch 'release-candidate' into feature/inject-gen3-pokemon-into-pcbox 2026-03-31 13:44:00 +02:00
Philippe Symons
1ee98caa55 Integrate libmgba into PTGB debug builds
This allows us to log to mgba's logging window.
It will be very useful to debug issues.

But we only allow enabling this for debug builds for license reasons.
2026-03-30 21:06:36 +02:00
Philippe Symons
2982b9ba93 Add debug menu entry to inject Celebi (WIP) 2026-03-25 21:49:41 +01:00
Philippe Symons
07e522fd62 Add comments, optimize rom space slightly and fix issue in debug_menu_entries.cpp 2026-03-10 11:58:43 +01:00
Philippe Symons
1590a1f108 Make the debug menu functional!
This adds a lot of the debug_mode.h options as an option you can modify at runtime.

I also moved both the text debug screen and the regular debug info screen in there.

And I added an option to start song playback.
2026-03-10 00:38:44 +01:00
Philippe Symons
10350179db Move debug info screen and text debug screen to debug menu 2026-03-09 23:12:32 +01:00
Philippe Symons
c498d59572 Split off the debug menu entries from the debug menu module 2026-03-09 20:36:54 +01:00
Philippe Symons
b84939b49a Add debug menu UI when you press L+R in the main menu.
It's only the UI yet. It only shows a couple of dummy options right now.
2026-03-09 19:56:32 +01:00