diff options
author | Treeki <treeki@gmail.com> | 2012-11-19 22:01:05 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-11-19 22:01:05 +0100 |
commit | 53880784ce5dced94bd3d98a240bcf84041c3ad5 (patch) | |
tree | 6211f503b02ebb67b32dd6f02820f980e55f8240 | |
parent | 03543264f99392834e63ff1c23bc0b7ebaa4ce51 (diff) | |
download | kamek-53880784ce5dced94bd3d98a240bcf84041c3ad5.tar.gz kamek-53880784ce5dced94bd3d98a240bcf84041c3ad5.zip |
pow pow pow
-rw-r--r-- | bugfixes.yaml | 2 | ||||
-rw-r--r-- | src/randomcrap.S | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/bugfixes.yaml b/bugfixes.yaml index af1ea6e..57dce7f 100644 --- a/bugfixes.yaml +++ b/bugfixes.yaml @@ -221,6 +221,8 @@ hooks: src_addr_pal: 0x80B00234
target_func: 'ReturnNone'
+ - {name: PowEvent1, type: branch_insn, branch_type: b, src_addr_pal: 0x80892DFC, target_func: 'PowEvent'}
+ - {name: PowEvent2, type: branch_insn, branch_type: b, src_addr_pal: 0x80893044, target_func: 'PowEvent'}
- {name: AlwaysDrawPictureFontWhite, type: branch_insn, branch_type: b, src_addr_pal: 0x800E596C, target_func: 'TextWriterCrap'}
- {name: DebugSCM, type: branch_insn, branch_type: b, src_addr_pal: 0x8006A6C4, target_func: 'EndSCM'}
diff --git a/src/randomcrap.S b/src/randomcrap.S index d3a0388..edf5fef 100644 --- a/src/randomcrap.S +++ b/src/randomcrap.S @@ -237,6 +237,26 @@ EndSCM: addi r1, r1, 0x10 blr +.global PowEvent +PowEvent: + subi r3, r3, 0x4CC + lwz r3, 4(r3) + clrlwi. r3, r3, 24 + beqlr + subi r4, r3, 1 + lis r3, instance__10dFlagMgr_c@h + ori r3, r3, instance__10dFlagMgr_c@l + lwz r3, 0(r3) + li r5, 0 + li r6, 1 + li r7, 0 + li r8, 0 + li r9, 0 + b set__10dFlagMgr_cFUcibbbUi + +.extern set__10dFlagMgr_cFUcibbbUi +.extern instance__10dFlagMgr_c + #AllocLog: # stwu r1, -0x20(r1) # mflr r0 |