mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-Patcher
synced 2025-09-03 20:11:19 +02:00
41 lines
656 B
Go
41 lines
656 B
Go
package main
|
|
|
|
import (
|
|
. "github.com/wii-tools/powerpc"
|
|
)
|
|
|
|
var NegateECTitle = PatchSet{
|
|
Name: "Negate EC Title Check",
|
|
|
|
Patches: []Patch{
|
|
{
|
|
Name: "Permit downloading all titles",
|
|
AtOffset: 619648,
|
|
|
|
// Generic function prolog
|
|
Before: Instructions{
|
|
STWU(R1, R1, 0xffe0),
|
|
MFSPR(R0, LR),
|
|
}.Bytes(),
|
|
|
|
// Immediately return true
|
|
After: Instructions{
|
|
LI(R3, 1),
|
|
BLR(),
|
|
}.Bytes(),
|
|
},
|
|
{
|
|
Name: "Nullify ec::removeAllTitles",
|
|
AtOffset: 588368,
|
|
Before: Instructions{
|
|
STWU(R1, R1, 0xffc0),
|
|
MFSPR(R0, LR),
|
|
}.Bytes(),
|
|
After: Instructions{
|
|
LI(R3, 0),
|
|
BLR(),
|
|
}.Bytes(),
|
|
},
|
|
},
|
|
}
|