From b4410594b0ec83a89f3183fc929745fa6f7d534d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 4 Nov 2022 01:05:26 -0700 Subject: [PATCH] fix invalid write in ep3 editors patch --- system/ppc/Ep3-Editors.patch.s | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/ppc/Ep3-Editors.patch.s b/system/ppc/Ep3-Editors.patch.s index 79781704..fdb6c439 100644 --- a/system/ppc/Ep3-Editors.patch.s +++ b/system/ppc/Ep3-Editors.patch.s @@ -76,10 +76,13 @@ again: mtctr r0 bctrl stw [r29], r3 + mr. r0, r3 + beq editor_construction_failed editor_already_exists: li r0, 0x0014 # Flags: disable update, disable render # See comment below about the flags field on PSO PC. sth [r3 + 0x04], r0 +editor_construction_failed: addi r30, r30, 0x0C addi r29, r29, 4 cmpl r30, r31