diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-08-18 17:36:59 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-08-18 17:36:59 -0400 |
commit | c9c42fb3319151221f317b3cbc255f6d117af5b9 (patch) | |
tree | 74b754f9343c0f9fb6154ea200408afc088a626d /gba/source/gamedata.c | |
parent | 8ad189bc5a88f43e688fc980db30169f0adac0fb (diff) | |
download | gen3uploader-c9c42fb3319151221f317b3cbc255f6d117af5b9.tar.gz gen3uploader-c9c42fb3319151221f317b3cbc255f6d117af5b9.tar.bz2 gen3uploader-c9c42fb3319151221f317b3cbc255f6d117af5b9.zip |
Removed dependency on ROM-internal arrays
I looked at the base stats array and determined that, especially if I limited it to just the data I needed, that it wouldn't be too bad a thing to just include it and the other two arrays I need in my multiboot image rather than reference the ones already located in the game ROM. This way, we get back compatibility with all previously-compatible ROMs, and not just ones that I have dumped. New issue: Deoxys's base stats are actually different per-game, though, so a special case will have to be written for that.
Diffstat (limited to 'gba/source/gamedata.c')
-rw-r--r-- | gba/source/gamedata.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gba/source/gamedata.c b/gba/source/gamedata.c index ae593b1..271eaf9 100644 --- a/gba/source/gamedata.c +++ b/gba/source/gamedata.c | |||
@@ -140,9 +140,6 @@ bool initSaveData(struct GameData* gameData) | |||
140 | pSaveBlock1 gSaveBlock1; | 140 | pSaveBlock1 gSaveBlock1; |
141 | pSaveBlock2 gSaveBlock2; | 141 | pSaveBlock2 gSaveBlock2; |
142 | pSaveBlock3 gSaveBlock3; | 142 | pSaveBlock3 gSaveBlock3; |
143 | struct BaseStats* gBaseStats; | ||
144 | const u32 (*gExpTables)[101]; | ||
145 | const u16* gNatOrder; | ||
146 | //u32 titlemid = 0; | 143 | //u32 titlemid = 0; |
147 | 144 | ||
148 | // get the address of the save loading function. | 145 | // get the address of the save loading function. |
@@ -345,9 +342,6 @@ bool initSaveData(struct GameData* gameData) | |||
345 | //mainloop = (void(*)()) 0x8000429; | 342 | //mainloop = (void(*)()) 0x8000429; |
346 | //titlemid = 0x807928f; | 343 | //titlemid = 0x807928f; |
347 | //load_pokemon = (void(*)()) 0x804c245; | 344 | //load_pokemon = (void(*)()) 0x804c245; |
348 | gBaseStats = (struct BaseStats*) ( GAME_FR ? 0 : 0x82547d0 ); | ||
349 | gExpTables = (ExperienceTables) ( GAME_FR ? 0 : 0x8253b30 ); | ||
350 | gNatOrder = (const u16*) ( GAME_FR ? 0 : 0x825203a ); | ||
351 | 345 | ||
352 | break; | 346 | break; |
353 | } | 347 | } |
@@ -518,9 +512,6 @@ bool initSaveData(struct GameData* gameData) | |||
518 | gameData->SaveBlock1 = gSaveBlock1; | 512 | gameData->SaveBlock1 = gSaveBlock1; |
519 | gameData->SaveBlock2 = gSaveBlock2; | 513 | gameData->SaveBlock2 = gSaveBlock2; |
520 | gameData->SaveBlock3 = gSaveBlock3; | 514 | gameData->SaveBlock3 = gSaveBlock3; |
521 | gameData->baseStats = gBaseStats; | ||
522 | gameData->expTables = gExpTables; | ||
523 | gameData->natOrder = gNatOrder; | ||
524 | 515 | ||
525 | return true; | 516 | return true; |
526 | } | 517 | } |