Commit Graph

170 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
f4696d7009 Adding error message for mixing JPN and Latin 2026-09-25 14:43:02 -04:00
Philippe Symons
f4626c1c0a Merge remote-tracking branch 'upstream/release-candidate' into isolate_mystery_gift_builder 2026-09-07 20:35:57 +02:00
GearsProgress
3cc00d3aa9 Fixing intro crash and graphics 2026-09-07 11:22:22 -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
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
b03916a125 Merge modifications 2026-07-02 23:15:36 -04:00
GearsProgress
50b0cdab72 Merge branch 'release-candidate' into gameboy-payload-update 2026-07-02 23:15:18 -04:00
easyaspi314
f3a164076d Cut VRAM usage roughly in half
Memory manufacturers and AAA game studios hate her!

With some clever rearranging, PTGB now uses only 36 KiB of the 64 KiB
BG VRAM. This means the remaining 28 KiB is free to use in the future.

Caveats: The flex tileset must not use more that 6 KiB. There is a check
for it added.

VRAM Map
  06000000 - 06000800 ( 2K): Eternal backdrop and textbox tileset
  06000800 - 06002000 ( 6K): Flex BG tileset
  06002000 - 06002400 ( 2K): BG0: Backdrop tilemap
  06002800 - 06003000 ( 2K): BG1: Flex BG tilemap
  06003000 - 06003800 ( 2K): BG2: Textbox tilemap
  06003800 - 06004000 ( 2K): BG3: Text tilemap
  06004000 -~06009000 (20K): Text rendering bitmap
  06009000 - 06010000 (28K): Free work RAM
  06010000 - 06018000 (32K): Sprite tileset

Additionally:
- Explicitly clear VRAM on boot
- Dirty workaround to fix box drawing buffer overflow.
- Flex backgrounds use a table instead of a huge switch statement
- Textbox tile IDs are now const u16[] instead of int[]
2026-07-02 16:20:19 -04:00
GearsProgress
a0d2d593ed Removing Pokemon_Party 2026-07-02 16:05:47 -04:00
Adri1
141a079111 Adjustments 2026-06-25 04:03:21 +02:00
GearsProgress
1232800859 Merge branch 'gameboy-payload-update' of https://github.com/Striaton-Lab-Team/Poke_Transporter_GB into gameboy-payload-update 2026-05-22 14:02:06 -04:00
GearsProgress
8d3aca3c66 Obtaining checksum from GB 2026-05-22 13:49:04 -04: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
GearsProgress
722c767b47 Updating link implementation 2026-05-12 14:51:01 -04:00
aestellic
92758f44ec add wrap around for menus + left/right jumps for dream dex 2026-05-01 00:56:04 -04:00
GearsProgress
3c26aec186 Switching to an interrupt timer based system 2026-04-17 13:17:02 -04:00
GearsProgress
be0fb6dcca Cleaning up the link handler (aka gameboy_colour) 2026-04-17 12:05:00 -04:00
GearsProgress
d0aea7a581 Fix busy loop 2026-04-16 17:10:51 -04:00
GearsProgress
4e92542f5c Updating global_next_frame to be interrupt based 2026-04-16 13:56:50 -04:00
Philippe Symons
7636da5329 Fix some UI bugs 2026-03-31 23:12:39 +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
GearsProgress
a68b33b94c Fixing the mulitboot load menu 2026-03-22 15:06:50 -04:00
GearsProgress
a7ebcd06fe Updating text engine backend 2026-03-18 22:55:38 -04:00
GearsProgress
1f29379810 Linking textbox creation to string display 2026-03-14 10:16:16 -04:00
GearsProgress
029a5a4cda Disabling sound_init to prevent crash 2026-03-11 16:39:58 -04:00
GearsProgress
209dbcf2ce Fixing merge conflicts for PR 117 2026-03-11 11:02:02 -04:00
Philippe Symons
6e377fc709 Make it possible to cleanly disable the debug menu 2026-03-10 00:43:40 +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
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
GearsProgress
12f710dafc Reapply "Release candidate"
This reverts commit 67aa927108.
2026-03-09 12:09:57 -04:00
GearsProgress
d17371ed1c Updating pt-br implementation 2026-03-05 18:11:16 -05:00
The Gears of Progress
67aa927108 Revert "Release candidate" 2026-02-24 00:04:47 -05:00
The Gears of Progress
0f003f0120 Merge branch 'text-debug-screen' into release-candidate 2026-02-24 00:02:10 -05:00
Philippe Symons
a7d8beb973 MaxMod sound engine lib integration
This commit integrates the MaxMod sound engine into PTGB.

Some test code already existed, but now it's done for real.

I added a thin API wrapper in sound.c/sound.h to abstract the sound engine.

One of AquaticAlloy's test songs was added to the main menu as a proof of concept.
We may want to disable it before the actual merge though.
2026-02-23 13:08:35 +01:00
The Gears of Progress
335e1dfe7f Updating Makefile and Dockerfile 2026-02-17 17:40:35 -05:00
The Gears of Progress
a0d242a44f Compressing underscores with escape characters 2026-02-13 21:25:31 -05:00
The Gears of Progress
38c07011a3 Updating legal message margins 2026-02-11 21:04:29 -05:00
The Gears of Progress
de4e5bbad6 Adding legal message padding 2026-02-11 08:22:49 -05:00
The Gears of Progress
5e7e9b4df7 Updating makefile 2026-02-05 11:15:09 -05:00
The Gears of Progress
210add3f62 Making the real changes this time 2026-02-02 22:42:31 -05:00
The Gears of Progress
e257bafb23 Disabling error printout and giving the legal screen more space 2026-02-02 22:25:07 -05:00
The Gears of Progress
5447b39569 Updating dex menu and selections 2026-01-29 22:42:06 -05:00
The Gears of Progress
1acbe99f93 Updating debug ROM to first check if real ROM has been inserted 2026-01-19 15:32:53 -05:00