From ff8f173b8b6f97443edc4ac4437236378c2589a8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 00:52:57 -0400 Subject: GBA now sends over entire party instead of just first Pokémon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gba/source/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gba/source/main.c') diff --git a/gba/source/main.c b/gba/source/main.c index e5521b2..4bb120f 100644 --- a/gba/source/main.c +++ b/gba/source/main.c @@ -179,21 +179,23 @@ int main(void) // Start sending over party pokémon. struct Pokemon* playerParty = 0; + u32 partyCount = 1; if (GAME_RS) { playerParty = gameData.SaveBlock1->rs.playerParty; + partyCount = gameData.SaveBlock1->rs.playerPartyCount; } else if (GAME_FRLG) { playerParty = gameData.SaveBlock1->frlg.playerParty; + partyCount = gameData.SaveBlock1->frlg.playerPartyCount; } else if (GAME_EM) { playerParty = gameData.SaveBlock1->e.playerParty; + partyCount = gameData.SaveBlock1->e.playerPartyCount; } waitForResponse(); - u32 partyCount = 1; - sendU32(partyCount); waitForAck(); -- cgit 1.4.1