From de39982228cc445fb02ca061e6484f7030104b7c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 30 Sep 2017 08:15:49 -0400 Subject: Extractor now gets gift ribbon descriptions Also fixed offsets of gift ribbon descriptions in the RSE save data, and added the offset for FRLG. --- gba/source/main.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gba/source/main.c') diff --git a/gba/source/main.c b/gba/source/main.c index 30f11d6..71db50d 100644 --- a/gba/source/main.c +++ b/gba/source/main.c @@ -130,6 +130,36 @@ int main(void) return 0; } + // Send gift ribbon descriptions + u8* giftRibbons = 0; + if (GAME_RS) + { + giftRibbons = gameData.SaveBlock1->rs.giftRibbons; + } else if (GAME_FRLG) + { + giftRibbons = gameData.SaveBlock1->frlg.giftRibbons; + } else if (GAME_EM) + { + giftRibbons = gameData.SaveBlock1->e.giftRibbons; + } + + u32 gn1 = + (giftRibbons[0] << 24) + | (giftRibbons[1] << 16) + | (giftRibbons[2] << 8) + | (giftRibbons[3]); + + u32 gn2 = + (giftRibbons[4] << 24) + | (giftRibbons[5] << 16) + | (giftRibbons[6] << 8); + + sendU32(gn1); + waitForAck(); + + sendU32(gn2); + waitForAck(); + // Send Pokédex data u8* pokedexSeen = 0; if (GAME_RS) -- cgit 1.4.1