mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-19 18:04:22 +01:00
tustin2121
33f3a7c11a
Adding FindObjectEventPaletteIndexByTag bugfix
The code in event_object_movement.c indicates that OBJ_EVENT_PAL_TAG_NONE was meant to be a sentinel for the bottom of each of the tables involving palettes in there. sObjectEventSpritePalettes is the exception, but the functions that access it look for OBJ_EVENT_PAL_TAG_NONE even though it's not in the table. If the palette tag isn't in the table, the functions which scan it fall off the bottom of the table into an infinite loop of scanning 256 "entries" of the table (because it uses a u8 index), and the game locks up. In vanilla, the search simply never falls off the bottom of the table. It seems the developers intended for that last entry to be {NULL, OBJ_EVENT_PAL_TAG_NONE}.
Pokémon Emerald
This is a decompilation of Pokémon Emerald.
It builds the following ROM:
- pokeemerald.gba
sha1: f3ae088181bf583e55daf962a92bb46f4f1d07b7
To set up the repository, see INSTALL.md.
See also
Other disassembly and/or decompilation projects:
- Pokémon Red and Blue
- Pokémon Gold and Silver (Space World '97 demo)
- Pokémon Yellow
- Pokémon Trading Card Game
- Pokémon Pinball
- Pokémon Stadium
- Pokémon Gold and Silver
- Pokémon Crystal
- Pokémon Ruby and Sapphire
- Pokémon Pinball: Ruby & Sapphire
- Pokémon FireRed and LeafGreen
- Pokémon Mystery Dungeon: Red Rescue Team
Contacts
Description
Languages
C
79.9%
Assembly
16.7%
C++
3.1%
Makefile
0.3%