Commit Graph

112 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
f1cf11f2cf Final set of bug fixes before release 2026-10-02 12:20:03 -04:00
GearsProgress
492c14b74f General fixes 2026-09-29 15:41:32 -04:00
Philippe Symons
11a581061f Fix first_time text entries in payload (untested)
first_time entries would be longer, therefore the reference pointers inside the payload would shift.

To avoid that, we now reserve space for the longest entry, knowing that the texts will get stripped after
the payloads have been generated.

Doing so ensures that the text offsets remain constant, no matter if we're dealing with the first_time or othertimes payload.

This also means we need to take that reservation into account on the PTGB rom side of things of course.
To do so, I created a pair array indicating the first time entries and there non-first_time counterparts.

We'll determine which entry is the longest and ensure we use that length for the offset of the next entry.
2026-09-22 17:10:20 +02:00
Philippe Symons
0e5cf21010 Merge remote-tracking branch 'upstream/release-candidate' into isolate_mystery_gift_builder 2026-09-22 14:15:58 +02:00
GearsProgress
61bc5c17b1 Fix removal array crash 2026-09-14 13:23:52 -04:00
Philippe Symons
afe0b5cc68 Merge remote-tracking branch 'upstream/gameboy-payload-update' into isolate_mystery_gift_builder 2026-09-02 15:06:32 +02:00
GearsProgress
9cd6dc30c3 Updating box graphics and adding Crystal revisions 2026-09-01 18:19:29 -04:00
Philippe Symons
db1b83a29b Merge remote-tracking branch 'upstream/gameboy-payload-update' into gears-merge 2026-08-31 13:21:29 +02:00
GearsProgress
1afb528c73 Re-enabling Dream Dex 2026-08-27 17:51:37 -04:00
GearsProgress
c454b2a6e2 Adding in support for all latin languages and versions 2026-08-22 16:28:29 -04:00
Philippe Symons
75a0028cd2 Merge branch 'bugfix/gb-payload-lockup-on-transfer' into isolate_mystery_gift_builder
and convert PokeBox BEFORE injection (to separate IWRAM consumption)
2026-08-20 13:58:44 +02:00
Philippe Symons
2a57c4249d Attempt to fix the lockup when transferring pokemon using the new gameboy-payload-update code
Free up some IWRAM by eliminating PokemonTables from the constructor of PokeBox and GenXPokemon/GBPokemon.
2026-08-13 11:39:18 +02:00
Philippe Symons
577bb69726 Merge remote-tracking branch 'upstream/gameboy-payload-update' into isolate_mystery_gift_builder 2026-08-11 14:13:06 +02:00
Philippe Symons
b8b0dd25e4 Integrate the pregenerated payload into mystery_gift_injector (WIP, untested)
This commit integrates the pregenerated payload into mystery_gift_injector.

It currently hardcodes the English Ruby v1.2 payload for testing purposes though.

The next test I'll have to do is to see if the transfer process works with this specific rom.

If it works, I can start integrating Pi's work in regards to delta patching using BPS.
2026-08-11 13:40:07 +02:00
GearsProgress
6e69252b42 Fixing secondary payloads 2026-08-04 16:54:20 -04:00
GearsProgress
56b0c5d6ec Adding in debug info for packet talking 2026-08-03 16:52:07 -04:00
GearsProgress
1c946449b5 Adding back in the debug Pokemon data 2026-07-30 10:32:45 -04:00
GearsProgress
fd765d5349 Fixing pokeTable null issue 2026-07-29 19:02:59 -04:00
GearsProgress
6886c81325 Updating PCCS 2026-07-27 18:46:53 -04:00
GearsProgress
927c0b7b7c Merge branch 'release-candidate' into gameboy-payload-update 2026-07-27 17:30:03 -04:00
GearsProgress
f3e63d0c98 Fixing the transferPokemon command 2026-07-03 21:08:52 -04:00
GearsProgress
275120d852 Adding in the GameBoy packet commands 2026-07-03 21:05:00 -04:00
GearsProgress
a0d2d593ed Removing Pokemon_Party 2026-07-02 16:05:47 -04:00
GearsProgress
150a87c59c Working on transfer Pokemon commands 2026-06-29 21:02:59 -04:00
GearsProgress
84a29e38cc Cleaning up some logic 2026-06-23 15:31:53 -04:00
GearsProgress
c3e30d1313 Continuing to add secondary packets 2026-06-22 00:03:05 -04:00
GearsProgress
3227df35f7 Fixing multi packet talk 2026-06-19 23:27:59 -04:00
GearsProgress
0df1f7203f Adding the soft reset(?) and other commands 2026-06-18 21:18:16 -04:00
GearsProgress
9244fc4082 Adding GBA flag 2026-06-16 20:31:59 -04:00
GearsProgress
f22776f250 Adding in readMemorySection command 2026-06-15 14:22:39 -04:00
GearsProgress
261d2d8c55 Cleaning up the link handling and preparing for full read chunks (for real this time) 2026-06-10 22:43:16 -04:00
Philippe Symons
0177374f00 Fix broken Write Cbl Data - CART bug.
For some reason, the merge broke the Write Cbl Data - CART functionality in the dbg menu.

The main problem is that writing a whole sector of data and erasing a sector is too slow to do in an IRQ handler.

Fix: Move the actual flash writing process to the main loop by creating a function called handleCartIO().
The IRQ handler writes to global_memory_buffer, and the handleCartIO() copies that
data to a local write buffer while the IRQ may still add more to global_memory_buffer.

Then it modifies the IRQ handlers' offset and moves the data that was appended in between to the start of the buffer all while
the IRQ handler is still appending new bytes.

If we end up at a sector boundary, we also do the erase_sector() call.

This was tested with and without the print link and print packets debug options.
Without the print options enabled, we end up occupying about 20KB on the cartridge save. (for 1st stage only!)

Man, this bug sucked. I rate it 1 star!
2026-06-08 23:01:31 +02:00
GearsProgress
e268ccccf5 Basic link packet implementation 2026-06-04 23:12:09 -04:00
GearsProgress
ebf8a71e8d Starting packet pipeline implementation 2026-06-03 11:36:20 -04:00
GearsProgress
842f5bc259 Fixing specific payload upload process 2026-05-31 19:52:16 -04:00
GearsProgress
64f25b700f Set sprites when cart is recognized 2026-05-27 16:57:51 -04:00
GearsProgress
d1c7adc2ce Decoupling LinkConnection from PokemonParty 2026-05-24 17:42:04 -04:00
GearsProgress
4e92542f5c Updating global_next_frame to be interrupt based 2026-04-16 13:56:50 -04:00
GearsProgress
f7740a4a3c Adjusting Fennel's appearing and disappearing 2026-03-22 13:44:18 -04:00
GearsProgress
0f871923b9 Removing commented out lines of code 2026-03-18 22:55:54 -04:00
GearsProgress
1f29379810 Linking textbox creation to string display 2026-03-14 10:16:16 -04: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
f7099eb68f Slightly better cleanup of Select_Menu 2026-03-03 00:46:36 +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
The Gears of Progress
1055094ab9 Modifying text_helper to not have static text sections 2026-01-11 15:02:16 -05:00
The Gears of Progress
9ca5c650d0 Working on debugging 2025-12-03 22:08:35 -05:00
The Gears of Progress
a98a58eb4e Final finishing touches 2025-10-12 16:41:48 -04:00
The Gears of Progress
ba1a075701 Adding PCCS 2025-10-12 15:08:33 -04:00