Update special save sector size checks
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
#include "constants/items.h"
|
#include "constants/items.h"
|
||||||
#include "constants/trainer_hill.h"
|
#include "constants/trainer_hill.h"
|
||||||
|
|
||||||
STATIC_ASSERT(sizeof(struct TrainerHillChallenge) <= SECTOR_DATA_SIZE, TrainerHillChallengeFreeSpace);
|
// Save data using TryWriteSpecialSaveSector is allowed to exceed SECTOR_DATA_SIZE (up to the counter field)
|
||||||
|
STATIC_ASSERT(sizeof(struct TrainerHillChallenge) <= SECTOR_COUNTER_OFFSET, TrainerHillChallengeFreeSpace);
|
||||||
|
|
||||||
struct SendRecvMgr
|
struct SendRecvMgr
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ struct RecordedBattleSave
|
|||||||
u32 checksum;
|
u32 checksum;
|
||||||
};
|
};
|
||||||
|
|
||||||
STATIC_ASSERT(sizeof(struct RecordedBattleSave) <= SECTOR_DATA_SIZE, RecordedBattleSaveFreeSpace);
|
// Save data using TryWriteSpecialSaveSector is allowed to exceed SECTOR_DATA_SIZE (up to the counter field)
|
||||||
|
STATIC_ASSERT(sizeof(struct RecordedBattleSave) <= SECTOR_COUNTER_OFFSET, RecordedBattleSaveFreeSpace);
|
||||||
|
|
||||||
EWRAM_DATA u32 gRecordedBattleRngSeed = 0;
|
EWRAM_DATA u32 gRecordedBattleRngSeed = 0;
|
||||||
EWRAM_DATA u32 gBattlePalaceMoveSelectionRngValue = 0;
|
EWRAM_DATA u32 gBattlePalaceMoveSelectionRngValue = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user