Poke_Transporter_GB/source
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
..
dbg add indicator for finished dialogue 2026-05-01 00:56:04 -04:00
libraries/libmgba Fix MGBA logging bug 2026-03-31 16:40:16 +02:00
background_engine.cpp Make gen3 pokemon injection work by fixing several bugs 2026-03-31 22:35:28 +02:00
box_menu.cpp Fix grey filter over front sprite during pkmn injection 2026-04-01 22:07:39 +02:00
button_handler.cpp
button_menu.cpp Updating text engine backend 2026-03-18 22:55:38 -04:00
custom_malloc.cpp
delays.cpp
dex_handler.cpp
flash_mem.cpp Fix hardware-only bug 2026-04-02 11:52:26 +02:00
gameboy_colour.cpp Fixing mail reading issues 2026-06-27 11:46:47 -04:00
Gen3CartridgeSaveReader.cpp Add support for debug menu submenus. 2026-04-28 23:12:01 +02:00
global_frame_controller.cpp Fixing cable printout 2026-03-20 23:26:08 -04:00
interrupt.cpp
interrupts_gba.c
irq_handler.s
libstd_replacements.cpp
linker_optimizations.cpp
main.cpp Cut VRAM usage roughly in half 2026-07-02 16:20:19 -04:00
memory.c
multiboot_upload.cpp Fixing the mulitboot load menu 2026-03-22 15:06:50 -04:00
mystery_gift_builder.cpp Added Control characters for MAXIE and ARCHIE variables 2026-06-25 00:45:00 +02:00
mystery_gift_injector.cpp Add debug menu entry to inject Celebi (WIP) 2026-03-25 21:49:41 +01:00
payload_file_reader.cpp
pkmn_font.s
pokedex.cpp add wrap around for menus + left/right jumps for dream dex 2026-05-01 00:56:04 -04:00
pokemon_party.cpp ITA/SPA GB(C) should work as intended; Updated wRAM values for GER Red/Blue; added a customized .clang-format file to implement consistent code formatting; updated decompression_buffer to match updated payloads.bin 2026-06-21 13:55:28 +02:00
ptgb_save_data_manager.cpp Add debug menu entry to inject Celebi (WIP) 2026-03-25 21:49:41 +01:00
random.cpp
rom_data.cpp Updating text engine backend 2026-03-18 22:55:38 -04:00
save.cpp
script_array.cpp Adjusting Fennel's appearing and disappearing 2026-03-22 13:44:18 -04:00
script_obj.cpp
script_var.cpp
select_menu.cpp
sound.c
sprite_data.cpp Cut VRAM usage roughly in half 2026-07-02 16:20:19 -04:00
text_data_table.cpp
text_engine.cpp Cut VRAM usage roughly in half 2026-07-02 16:20:19 -04:00
vertical_menu_cursor_handler.cpp
vertical_menu.cpp add wrap around for menus + left/right jumps for dream dex 2026-05-01 00:56:04 -04:00