Commit Graph

10 Commits

Author SHA1 Message Date
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
GearsProgress
be0fb6dcca Cleaning up the link handler (aka gameboy_colour) 2026-04-17 12:05:00 -04:00
GearsProgress
4e92542f5c Updating global_next_frame to be interrupt based 2026-04-16 13:56:50 -04: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
db21eba3b9 Fix bug + add entry for injecting Celebi in debug menu 2026-03-26 15:30:46 +01:00
GearsProgress
1f29379810 Linking textbox creation to string display 2026-03-14 10:16:16 -04: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
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
Philippe Symons
22f29a789b Fix small mistake 2026-03-03 00:28:06 +01:00
Philippe Symons
b0abeaf5f6 Create vertical_menu widget
This commit implements a vertical menu widget, which should be quite a bit more flexible than
what we currently have.

It defines interfaces in order to respond to selection changes, show and hide. And has a i_item_widget
interface class to allow you to use custom item widgets.

This is done in preparation for adding a debug menu, in which I kinda want to add toggle options
while using the same vertical_menu widget.

Right now, vertical_menu is only used in Select_Menu. Needless to say that Select_Menu was reworked quite a bit.
Still, in terms of visuals or functionality, the changes should be invisible for now. I mean, I didn't do anything *new* with it yet.
2026-03-03 00:15:18 +01:00