Clean up code
This commit is contained in:
parent
acf5d8133a
commit
495ee6698c
9 changed files with 20 additions and 9 deletions
|
@ -523,10 +523,10 @@ struct SaveBlock2
|
|||
/*0xA8*/ u32 gcnLinkFlags; // Read by Pokémon Colosseum/XD
|
||||
/*0xAC*/ u32 encryptionKey;
|
||||
/*0xB0*/ struct PlayersApprentice playerApprentice;
|
||||
/*0xDC*/ struct Apprentice apprentices[APPRENTICE_COUNT]; //272 bytes
|
||||
/*0xDC*/ struct Apprentice apprentices[APPRENTICE_COUNT];
|
||||
/*0x1EC*/ struct BerryCrush berryCrush;
|
||||
#if FREE_POKEMON_JUMP == FALSE
|
||||
/*0x1FC*/ struct PokemonJumpRecords pokeJump; //16 bytes
|
||||
/*0x1FC*/ struct PokemonJumpRecords pokeJump;
|
||||
#endif //FREE_POKEMON_JUMP
|
||||
/*0x20C*/ struct BerryPickingResults berryPick;
|
||||
#if FREE_RECORD_MIXING_HALL_RECORDS == FALSE
|
||||
|
@ -1012,7 +1012,7 @@ struct SaveBlock1
|
|||
/*0x9BC*/ u16 berryBlenderRecords[3];
|
||||
/*0x9C2*/ u8 unused_9C2[6];
|
||||
#if FREE_MATCH_CALL == FALSE
|
||||
/*0x9C8*/ u16 trainerRematchStepCounter; //104 bytes
|
||||
/*0x9C8*/ u16 trainerRematchStepCounter;
|
||||
/*0x9CA*/ u8 trainerRematches[MAX_REMATCH_ENTRIES];
|
||||
#endif //FREE_MATCH_CALL
|
||||
/*0xA2E*/ //u8 padding3[2];
|
||||
|
@ -1033,7 +1033,7 @@ struct SaveBlock1
|
|||
/*0x278E*/ u8 decorationPosters[10];
|
||||
/*0x2798*/ u8 decorationDolls[40];
|
||||
/*0x27C0*/ u8 decorationCushions[10];
|
||||
/*0x27CC*/ TVShow tvShows[TV_SHOWS_COUNT]; //900 bytes
|
||||
/*0x27CC*/ TVShow tvShows[TV_SHOWS_COUNT];
|
||||
/*0x27CA*/ //u8 padding4[2];
|
||||
/*0x2B50*/ PokeNews pokeNews[POKE_NEWS_COUNT];
|
||||
/*0x2B90*/ u16 outbreakPokemonSpecies;
|
||||
|
|
|
@ -338,6 +338,7 @@ void ShowLinkBattleRecords(void)
|
|||
PrintLinkBattleRecord(&gSaveBlock1Ptr->linkBattleRecords.entries[i], 7 + (i * 2), gSaveBlock1Ptr->linkBattleRecords.languages[i]);
|
||||
}
|
||||
#endif //FREE_LINK_BATTLE_RECORDS
|
||||
|
||||
PutWindowTilemap(gRecordsWindowId);
|
||||
CopyWindowToVram(gRecordsWindowId, COPYWIN_FULL);
|
||||
}
|
||||
|
|
|
@ -1753,6 +1753,7 @@ static bool32 DoesSomeoneWantRematchIn_(const struct RematchTrainer *table, u16
|
|||
return TRUE;
|
||||
}
|
||||
#endif //FREE_MATCH_CALL
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1781,6 +1782,7 @@ static bool8 IsFirstTrainerIdReadyForRematch(const struct RematchTrainer *table,
|
|||
if (gSaveBlock1Ptr->trainerRematches[tableId] == 0)
|
||||
return FALSE;
|
||||
#endif //FREE_MATCH_CALL
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1796,6 +1798,7 @@ static bool8 IsTrainerReadyForRematch_(const struct RematchTrainer *table, u16 t
|
|||
if (gSaveBlock1Ptr->trainerRematches[tableId] == 0)
|
||||
return FALSE;
|
||||
#endif //FREE_MATCH_CALL
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -2915,6 +2915,7 @@ void GetEreaderTrainerName(u8 *dst)
|
|||
|
||||
for (i = 0; i < 5; i++)
|
||||
dst[i] = gSaveBlock2Ptr->frontier.ereaderTrainer.name[i];
|
||||
|
||||
dst[i] = EOS;
|
||||
#else
|
||||
dst[0] = EOS;
|
||||
|
|
|
@ -260,6 +260,7 @@ bool8 MEScrCmd_setenigmaberry(struct ScriptContext *ctx)
|
|||
else
|
||||
ctx->mStatus = MEVENT_STATUS_LOAD_ERROR;
|
||||
#endif //FREE_ENIGMA_BERRY
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -393,6 +393,7 @@ bool32 MysteryGift_TrySaveStamp(const u16 *stamp)
|
|||
}
|
||||
}
|
||||
#endif //FREE_BATTLE_TOWER_E_READER
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -628,6 +629,7 @@ u16 MysteryGift_GetCardStat(u32 stat)
|
|||
}
|
||||
}
|
||||
#endif //FREE_BATTLE_TOWER_E_READER
|
||||
|
||||
AGB_ASSERT(0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -490,6 +490,7 @@ static bool32 UNUSED HasRematchEntry(void)
|
|||
}
|
||||
}
|
||||
#endif //FREE_MATCH_CALL
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -527,6 +527,7 @@ static void TrainerHillGetChallengeStatus(void)
|
|||
static void BufferChallengeTime(void)
|
||||
{
|
||||
s32 total, minutes, secondsWhole, secondsFraction;
|
||||
|
||||
#if FREE_TRAINER_HILL == FALSE
|
||||
total = gSaveBlock1Ptr->trainerHill.timer;
|
||||
if (total >= HILL_MAX_TIME)
|
||||
|
@ -608,6 +609,7 @@ void PrintOnTrainerHillRecordsWindow(void)
|
|||
{
|
||||
s32 i, x, y;
|
||||
u32 total, minutes, secondsWhole, secondsFraction;
|
||||
|
||||
#if FREE_TRAINER_HILL == FALSE
|
||||
SetUpDataStruct();
|
||||
FillWindowPixelBuffer(0, PIXEL_FILL(0));
|
||||
|
|
Loading…
Reference in a new issue