diff --git a/system/client-functions/BugFixes/BugFixes.3___.patch.s b/system/client-functions/BugFixes/BugFixes.3___.patch.s index 416d2c8f..f674c987 100644 --- a/system/client-functions/BugFixes/BugFixes.3___.patch.s +++ b/system/client-functions/BugFixes/BugFixes.3___.patch.s @@ -878,5 +878,31 @@ g12_hook_end: + # Tsumikiri J-Sword special attack + rapid weapon switch bug fix (this part + # by fuzziqersoftware) + + .label tjs_switch_fix_hook_call, + .label tjs_switch_fix_hook_loc, 0x8000B050 + .data tjs_switch_fix_hook_loc + .deltaof tjs_switch_fix_hook_start, tjs_switch_fix_hook_end + .address tjs_switch_fix_hook_loc +tjs_switch_fix_hook_start: + lwz r0, [r3 + 0x0188] + cmpwi r0, 0 + bnelr + mflr r31 + addi r31, r31, 0x100 + mtlr r31 + blr +tjs_switch_fix_hook_end: + + .data tjs_switch_fix_hook_call + .data 8 + .address tjs_switch_fix_hook_call + beq +0x108 + bl tjs_switch_fix_hook_loc + + + .data 0 .data 0 diff --git a/system/client-functions/notes.txt b/system/client-functions/notes.txt index a98c69c2..3e55c1e8 100644 --- a/system/client-functions/notes.txt +++ b/system/client-functions/notes.txt @@ -3,6 +3,7 @@ Used regions in PSO GC: 800041A0-800041B8 (0018) UnsellableRares 800041C0-???????? (TODO) EnemyDamageSync +8000B050-8000B06C (001C) BugFixes 8000B06C-8000B088 (001C) BugFixes 8000B088-8000B0E0 (0058) BugFixes 8000B0E0-8000B254 (0174) q8853x send_function_call handler