summaryrefslogtreecommitdiff
path: root/src/f_pc/f_pc_pause.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2022-07-02 15:15:47 -0700
committerGitHub <noreply@github.com>2022-07-02 15:15:47 -0700
commitb68cfbc0e6a66e9ef46ab01264dbe9e92b65bf8e (patch)
tree76b6e4b713e658f58e84b4369d8ace35b90e3717 /src/f_pc/f_pc_pause.cpp
parentb973f1c79806571e8f96ede37eae7bcda431ec21 (diff)
parentb99af1efc3c29179c75c5edc2e93ba1936be0da0 (diff)
Merge pull request #204 from lepelog/misc
misc and d_event
Diffstat (limited to 'src/f_pc/f_pc_pause.cpp')
-rw-r--r--src/f_pc/f_pc_pause.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/f_pc/f_pc_pause.cpp b/src/f_pc/f_pc_pause.cpp
index f3c6345f62..b73a436775 100644
--- a/src/f_pc/f_pc_pause.cpp
+++ b/src/f_pc/f_pc_pause.cpp
@@ -13,22 +13,14 @@
//
/* 80023844-80023868 0024+00 s=0 e=3 z=0 None .text fpcPause_IsEnable__FPvUc */
-#ifdef NON_MATCHING
s32 fpcPause_IsEnable(void* pProcess, u8 flag) {
base_process_class* pProc = (base_process_class*)pProcess;
- // extra addic/subfe?
- return (pProc->mPauseFlag & flag) == flag;
-}
-#else
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm s32 fpcPause_IsEnable(void* param_0, u8 param_1) {
- nofralloc
-#include "asm/f_pc/f_pc_pause/fpcPause_IsEnable__FPvUc.s"
+ if ((pProc->mPauseFlag & flag) == flag) {
+ return 1;
+ } else {
+ return 0;
+ }
}
-#pragma pop
-#endif
/* 80023868-800238D4 006C+00 s=0 e=1 z=0 None .text fpcPause_Enable__FPvUc */
s32 fpcPause_Enable(void* pProcess, u8 flag) {