mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-29 15:23:01 -04:00
some f_op
This commit is contained in:
@@ -4,52 +4,44 @@
|
||||
//
|
||||
|
||||
#include "f_op/f_op_scene_pause.h"
|
||||
#include "f_pc/f_pc_executor.h"
|
||||
#include "f_pc/f_pc_manager.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
//
|
||||
|
||||
struct scene_class {};
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
extern "C" void fopScnPause_Enable__FP11scene_class();
|
||||
extern "C" void fopScnPause_Disable__FP11scene_class();
|
||||
|
||||
//
|
||||
// External References:
|
||||
//
|
||||
|
||||
extern "C" void fpcEx_IsExist__FUi();
|
||||
extern "C" void fpcM_IsPause__FPvUc();
|
||||
extern "C" void fpcM_PauseEnable__FPvUc();
|
||||
extern "C" void fpcM_PauseDisable__FPvUc();
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
//
|
||||
|
||||
/* 80020548-80020594 01AE88 004C+00 0/0 2/2 0/0 .text fopScnPause_Enable__FP11scene_class
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void fopScnPause_Enable(scene_class* param_0) {
|
||||
nofralloc
|
||||
#include "asm/f_op/f_op_scene_pause/fopScnPause_Enable__FP11scene_class.s"
|
||||
int fopScnPause_Enable(scene_class* pScene) {
|
||||
if (pScene) {
|
||||
fpcM_PauseEnable(pScene, 1);
|
||||
fpcM_PauseEnable(pScene, 2);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80020594-8002064C 01AED4 00B8+00 0/0 2/2 0/0 .text fopScnPause_Disable__FP11scene_class */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void fopScnPause_Disable(scene_class* param_0) {
|
||||
nofralloc
|
||||
#include "asm/f_op/f_op_scene_pause/fopScnPause_Disable__FP11scene_class.s"
|
||||
int fopScnPause_Disable(scene_class* pScene) {
|
||||
if (pScene) {
|
||||
void* tmp = (void*)pScene->field_0x2C[6];
|
||||
|
||||
if (!tmp) {
|
||||
fpcM_PauseDisable(pScene, 1);
|
||||
fpcM_PauseDisable(pScene, 2);
|
||||
} else if (fpcEx_IsExist((s32)((int*)tmp)[1]) == 1) {
|
||||
if (!fpcM_IsPause(tmp, 1)) {
|
||||
fpcM_PauseDisable(pScene, 1);
|
||||
}
|
||||
|
||||
if (!fpcM_IsPause(tmp, 2)) {
|
||||
fpcM_PauseDisable(pScene, 2);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
Reference in New Issue
Block a user