Skip to content

Commit

Permalink
address PR feedback - pointer spacing, some names, removing unnecessa…
Browse files Browse the repository at this point in the history
…ry parens
  • Loading branch information
ravepossum committed Apr 1, 2024
1 parent 72675f9 commit 784d09b
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 93 deletions.
3 changes: 2 additions & 1 deletion include/constants/savedata/savedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ enum SaveSectorResult {
enum SaveSectorID {
SECTOR_ID_PRIMARY = 0,
SECTOR_ID_BACKUP,
SECTOR_ID_ERROR,

SECTOR_ID_MAX = 2, // also used to indicate an error
SECTOR_ID_MAX = SECTOR_ID_ERROR,
};


Expand Down
6 changes: 3 additions & 3 deletions include/savedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ typedef struct SaveDataState {
int currentBlock;
int endBlock;
s32 lockID;
int stateSequence;
int mainSequence;
u32 globalCounterBackup;
u32 blockCounterBackup[SAVE_BLOCK_ID_MAX];
volatile BOOL isLocked;
volatile BOOL locked;
} SaveDataState;

typedef struct SaveData {
Expand All @@ -57,7 +57,7 @@ typedef struct SaveData {
u8 blockOffsets[SAVE_BLOCK_ID_MAX];
SavePageInfo pageInfo[SAVE_TABLE_ENTRY_MAX];
SaveBlockInfo blockInfo[SAVE_BLOCK_ID_MAX];
SaveDataState saveState;
SaveDataState state;
int unk_202C4;
u32 unk_202C8;
} SaveData;
Expand Down
Loading

0 comments on commit 784d09b

Please sign in to comment.