From 2c837223756de2596931c22c8f4fa2ba4a4237a9 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 11 Jul 2017 21:09:56 -0400 Subject: Fixed indentation --- gba/source/gamedata.c | 20 ++++++++++---------- gba/source/link.c | 6 +++--- gba/source/main.c | 12 +++++------- 3 files changed, 18 insertions(+), 20 deletions(-) (limited to 'gba/source') diff --git a/gba/source/gamedata.c b/gba/source/gamedata.c index 6868b2b..bbcf4dd 100644 --- a/gba/source/gamedata.c +++ b/gba/source/gamedata.c @@ -244,11 +244,11 @@ bool initSaveData( break; } - /// --- FR/LG --- - // In FR/LG, the function that initialises the save-block pointers to - // default does not set up saveblock3. Which will need to be set up before - // loading the save if we want boxed Pokémon to not disappear. Oh, and - // loadsave() offset is different between FR and LG... + /// --- FR/LG --- + // In FR/LG, the function that initialises the save-block pointers to + // default does not set up saveblock3. Which will need to be set up before + // loading the save if we want boxed Pokémon to not disappear. Oh, and + // loadsave() offset is different between FR and LG... case 'DRPB': // FireRed German case 'DGPB': // LeafGreen German @@ -401,11 +401,11 @@ bool initSaveData( break; } - /// --- Emerald --- - // In Emerald, the saveblock pointer that isn't set up is saveblock1 (in - // FR/LG it was saveblock3). The initial save loading code after the - // copyright screen is also updated, now it sets up ASLR/crypto here before - // loading the save. + /// --- Emerald --- + // In Emerald, the saveblock pointer that isn't set up is saveblock1 (in + // FR/LG it was saveblock3). The initial save loading code after the + // copyright screen is also updated, now it sets up ASLR/crypto here before + // loading the save. case 'DEPB': // Emerald German { diff --git a/gba/source/link.c b/gba/source/link.c index c84e44d..acadf3b 100644 --- a/gba/source/link.c +++ b/gba/source/link.c @@ -12,8 +12,8 @@ void initializeLink() { - REG_HS_CTRL |= JOY_RW; - REG_JOYTR = 0; + REG_HS_CTRL |= JOY_RW; + REG_JOYTR = 0; while ((REG_HS_CTRL & JOY_WRITE) == 0); REG_HS_CTRL |= JOY_RW; } @@ -22,7 +22,7 @@ void waitForAck() { while ((REG_HS_CTRL & JOY_WRITE) == 0); REG_HS_CTRL |= JOY_RW; - REG_JOYTR = 0; + REG_JOYTR = 0; while ((REG_HS_CTRL & JOY_WRITE) == 0); REG_HS_CTRL |= JOY_RW; } diff --git a/gba/source/main.c b/gba/source/main.c index 9f97324..6207685 100644 --- a/gba/source/main.c +++ b/gba/source/main.c @@ -10,7 +10,7 @@ int main(void) { - initializeLink(); + initializeLink(); // Identify the host game. if (GAME_RUBY) @@ -30,9 +30,9 @@ int main(void) sendS32(5); } else { sendS32(-1); - waitForAck(); + waitForAck(); - return 0; + return 0; } waitForAck(); @@ -46,9 +46,9 @@ int main(void) { // Unsupported game version. sendS32(-1); - waitForAck(); + waitForAck(); - return 0; + return 0; } sendS32(1); @@ -105,6 +105,4 @@ int main(void) sendU32(tti); waitForAck(); - - // Halt(); } -- cgit 1.4.1