diff --git a/go.mod b/go.mod index 2c9a032..7866e6e 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,6 @@ require ( github.com/logrusorgru/aurora/v3 v3.0.0 github.com/wii-tools/GoNUSD v0.2.2 github.com/wii-tools/arclib v1.0.0 - github.com/wii-tools/powerpc v0.0.0-20220411041712-104089eba964 + github.com/wii-tools/powerpc v0.0.0-20220518173947-5e34f2388e0d github.com/wii-tools/wadlib v0.3.1 ) diff --git a/go.sum b/go.sum index 7a6e04c..34ccfb3 100644 --- a/go.sum +++ b/go.sum @@ -4,7 +4,7 @@ github.com/wii-tools/GoNUSD v0.2.2 h1:vHiSLI9sK9Q4zbCt24jMiq/lo2FISLBuCHoaY3Bd88 github.com/wii-tools/GoNUSD v0.2.2/go.mod h1:Wf0ZMf4jdyQYSaSmNyFsqfQbngFA/cM9mpJBZ63Qlzs= github.com/wii-tools/arclib v1.0.0 h1:OAmbL3NDUmlR0wa1VpJhxnKiIRFZz1CC40lTVPUm8Ms= github.com/wii-tools/arclib v1.0.0/go.mod h1:uXFan/NSXoQ2pOVPN4ugZ4nJX7esBnjB1QUgVrEzK/4= -github.com/wii-tools/powerpc v0.0.0-20220411041712-104089eba964 h1:/ZeMBIoblxzyhKHQJncvBZaxqi6RZz4rm4QvL0QiguA= -github.com/wii-tools/powerpc v0.0.0-20220411041712-104089eba964/go.mod h1:bt/52tMfh1hmEXwFh1i1AOEMNHoe0jSXkcRunOSdFkc= +github.com/wii-tools/powerpc v0.0.0-20220518173947-5e34f2388e0d h1:xz6oUpu5th8BmMoxUSIAksujOT6SLrqm3CWxDqA78Mg= +github.com/wii-tools/powerpc v0.0.0-20220518173947-5e34f2388e0d/go.mod h1:bt/52tMfh1hmEXwFh1i1AOEMNHoe0jSXkcRunOSdFkc= github.com/wii-tools/wadlib v0.3.1 h1:g0Szzof/YsBLghP+JpoVzT/6M6jpl+AH9PHiUuG3cd8= github.com/wii-tools/wadlib v0.3.1/go.mod h1:GK+f2POk+rVu1p4xqLSb4ll1SKKbfOO6ZAB+oPLV3uQ= diff --git a/patch_ec_title_check.go b/patch_ec_title_check.go index c681b67..3511801 100644 --- a/patch_ec_title_check.go +++ b/patch_ec_title_check.go @@ -15,7 +15,7 @@ var NegateECTitle = PatchSet{ // Generic function prolog Before: Instructions{ STWU(R1, R1, 0xffe0), - MFSPR(), + MFSPR(R0, LR), }.Bytes(), // Immediately return true @@ -30,7 +30,7 @@ var NegateECTitle = PatchSet{ Before: Instructions{ STWU(R1, R1, 0xfff0), - MFSPR(), + MFSPR(R0, LR), }.Bytes(), After: Instructions{ LI(R3, 1), @@ -42,7 +42,7 @@ var NegateECTitle = PatchSet{ AtOffset: 619904, Before: Instructions{ STWU(R1, R1, 0xfff0), - MFSPR(), + MFSPR(R0, LR), }.Bytes(), After: Instructions{ LI(R3, 1), @@ -54,7 +54,7 @@ var NegateECTitle = PatchSet{ AtOffset: 588368, Before: Instructions{ STWU(R1, R1, 0xffc0), - MFSPR(), + MFSPR(R0, LR), }.Bytes(), After: Instructions{ LI(R3, 0),