55 flag = saveFile->
globalFlags[wordIdx] & (1 << bitIdx);
79 flag = saveFile->
globalFlags[wordIdx] & (1 << bitIdx);
133 s16 ret = (b2 << 8) | b1;
148 return (b2 << 8) | b1;
160 s16 ret = (b4 << 24) | (b3 << 16) | (b2 << 8) | b1;
179 return (b4 << 24) | (b3 << 16) | (b2 << 8) | b1;
183 s32 wordIdx = index / 32;
184 s32 bitIdx = index % 32;
186 s32 flag = saveFile->
areaFlags[wordIdx] & (1 << bitIdx);
192 saveFile->
areaFlags[wordIdx] &= ~(1 << bitIdx);
197 s32 wordIdx = index / 32;
198 s32 bitIdx = index % 32;
200 s32 flag = saveFile->
areaFlags[wordIdx] & (1 << bitIdx);
206 saveFile->
areaFlags[wordIdx] |= 1 << bitIdx;
211 s32 wordIdx = index / 32;
212 s32 bitIdx = index % 32;
#define EVT_GAME_FLAG_CUTOFF
#define EVT_INDEX_OF_GAME_BYTE(v)
#define EVT_GAME_BYTE_CUTOFF
#define EVT_INDEX_OF_GAME_FLAG(v)
GameStatus * gGameStatusPtr
s16 set_global_short(s32 index, s32 value)
Store a short in two consecutive saved game bytes.
s32 set_global_flag(s32 index)
void clear_saved_variables(void)
s32 get_global_flag(s32 index)
s32 set_area_flag(s32 index)
s32 set_global_word(s32 index, s32 value)
Store a word in four consecutive saved game bytes.
s32 get_global_byte(s32 index)
Get value of saved game byte.
s32 clear_area_flag(s32 index)
s32 get_area_flag(s32 index)
void clear_area_flags(void)
s32 get_area_byte(s32 index)
s8 set_area_byte(s32 index, s32 value)
s16 get_global_short(s32 index)
Retrieve a short from two consecutive saved game bytes.
s32 clear_global_flag(s32 index)
s32 get_global_word(s32 index)
Retrieve a word from four consecutive saved game bytes.
s8 set_global_byte(s32 index, s32 value)
Set value of saved game byte.
SaveData gCurrentSaveFile