document: fileprogresss related code, replaced magic numbers with constants where applicable
This commit is contained in:
@@ -195,7 +195,7 @@ void __baMarker_8028BAB0(enum jiggy_e jiggy_id, s32 arg1, s32 arg2, s32 arg3){
|
||||
}
|
||||
|
||||
// arg1 - if bit 0x400000 is set, it's a volatile flag, else it's a file progress flag (for witch switches)
|
||||
void __baMarker_8028BB1C(s32 arg0, u32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6){
|
||||
void __baMarker_8028BB1C(s32 arg0, enum file_progress_e progress_flag, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6){
|
||||
u32 sp24;
|
||||
if(arg0 != 1)
|
||||
return;
|
||||
@@ -203,9 +203,9 @@ void __baMarker_8028BB1C(s32 arg0, u32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 a
|
||||
if(func_8028ECAC() == 1)
|
||||
return;
|
||||
|
||||
// if bit 0x400000 of arg1 is set, it's a volatile flag, else it's a file progress flag (for witch switches)
|
||||
if(arg1 & 0x400000){
|
||||
sp24 = arg1 + 0xFFC00000; // weird truncing
|
||||
// if bit 0x400000 of fileProgressFlag is set, it's a volatile flag, else it's a file progress flag (for witch switches)
|
||||
if(progress_flag & 0x400000){
|
||||
sp24 = progress_flag + 0xFFC00000; // weird truncing
|
||||
if(!volatileFlag_get(sp24)){
|
||||
volatileFlag_set(sp24, 1);
|
||||
func_8030E6D4(SFX_90_SWITCH_PRESS);
|
||||
@@ -214,8 +214,8 @@ void __baMarker_8028BB1C(s32 arg0, u32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 a
|
||||
}
|
||||
}
|
||||
else{//L8028BBB8
|
||||
if(!fileProgressFlag_get(arg1)){
|
||||
fileProgressFlag_set(arg1, 1);
|
||||
if(!fileProgressFlag_get(progress_flag)){
|
||||
fileProgressFlag_set(progress_flag, 1);
|
||||
func_8030E6D4(SFX_90_SWITCH_PRESS);
|
||||
volatileFlag_set(VOLATILE_FLAG_BF, 1);
|
||||
func_802D6264(1.0f, arg2, arg3, arg4, arg5, arg6);
|
||||
|
Reference in New Issue
Block a user