mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
nm
This commit is contained in:
parent
b3d87e9347
commit
1c74bd0c7d
@ -6,8 +6,9 @@ INCLUDE_ASM("code_dba20_len_350", clear_area_flags);
|
||||
|
||||
INCLUDE_ASM("code_dba20_len_350", clear_global_flag);
|
||||
|
||||
INCLUDE_ASM("code_dba20_len_350", set_global_flag);
|
||||
/*s32 set_global_flag(s32 index) {
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
s32 set_global_flag(s32 index) {
|
||||
//SaveData* saveFile = &gCurrentSaveFile;
|
||||
s32 flag;
|
||||
|
||||
@ -23,10 +24,13 @@ INCLUDE_ASM("code_dba20_len_350", set_global_flag);
|
||||
|
||||
gCurrentSaveFile->globalFlags[index / 32] |= (1 << (index % 32));
|
||||
return flag;
|
||||
}*/
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM("code_dba20_len_350", set_global_flag);
|
||||
#endif
|
||||
|
||||
s32 INCLUDE_ASM("code_dba20_len_350", get_global_flag, s32 index);
|
||||
/*s32 get_global_flag(s32 index) {
|
||||
#ifdef NON_MATCHING
|
||||
s32 get_global_flag(s32 index) {
|
||||
s32 bitIdx;
|
||||
s32 wordIdx;
|
||||
s32 bit;
|
||||
@ -44,7 +48,10 @@ s32 INCLUDE_ASM("code_dba20_len_350", get_global_flag, s32 index);
|
||||
}
|
||||
return bit;
|
||||
//return (bit != 0) ? 1 : bit; // ??? surely this is `bit != 0`
|
||||
}*/
|
||||
}
|
||||
#else
|
||||
s32 INCLUDE_ASM("code_dba20_len_350", get_global_flag, s32 index);
|
||||
#endif
|
||||
|
||||
s8 set_global_byte(s32 index, s8 value) {
|
||||
SaveData* saveFile = &gCurrentSaveFile;
|
||||
@ -60,8 +67,8 @@ s8 get_global_byte(s32 index) {
|
||||
|
||||
INCLUDE_ASM("code_dba20_len_350", clear_area_flag);
|
||||
|
||||
INCLUDE_ASM("code_dba20_len_350", set_area_flag);
|
||||
/*s32 set_area_flag(s32 index) {
|
||||
#ifdef NON_MATCHING
|
||||
s32 set_area_flag(s32 index) {
|
||||
SaveData* saveFile = &gCurrentSaveFile;
|
||||
s32 flag;
|
||||
s32 flagIdx;
|
||||
@ -79,7 +86,10 @@ INCLUDE_ASM("code_dba20_len_350", set_area_flag);
|
||||
saveFile->areaFlags[flagIdx] |= (1 << flagShift);
|
||||
|
||||
return flag;
|
||||
}*/
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM("code_dba20_len_350", set_area_flag);
|
||||
#endif
|
||||
|
||||
s32 get_area_flag(s32 index) {
|
||||
s32 flag;
|
||||
|
Loading…
Reference in New Issue
Block a user