public IList <string> GenerateCodes(PatcherLib.Datatypes.Context context) { if (context == Context.US_PSP) { return(Codes.GenerateCodes(Context.US_PSP, PSPResources.Binaries.Propositions, this.ToByteArray(), 0x2E9634)); } else { return(Codes.GenerateCodes(Context.US_PSX, PSXResources.Binaries.Propositions, this.ToByteArray(), 0x9D380, Codes.CodeEnabledOnlyWhen.World)); } }
public IList <string> GenerateCodes(PatcherLib.Datatypes.Context context, FFTPatch fftPatch) { if (context == Context.US_PSP) { return(Codes.GenerateCodes(Context.US_PSP, fftPatch.Defaults[FFTPatch.ElementName.Propositions], this.ToByteArray(), 0x2E9634)); } else { return(Codes.GenerateCodes(Context.US_PSX, fftPatch.Defaults[FFTPatch.ElementName.Propositions], this.ToByteArray(), 0x9D380, Codes.CodeEnabledOnlyWhen.World)); } }
public override IList <PatcherLib.Datatypes.PatchedByteArray> GetPatches(PatcherLib.Datatypes.Context context) { List <PatchedByteArray> result = new List <PatchedByteArray>(); byte[] bytes = ToByteArray(); if (context == Context.US_PSP) { PatcherLib.Iso.PspIso.AbilityAnimations.ForEach(kp => result.Add(kp.GetPatchedByteArray(bytes))); } else if (context == Context.US_PSX) { result.Add(PatcherLib.Iso.PsxIso.AbilityAnimations.GetPatchedByteArray(bytes)); } return(result); }
public override IList <PatchedByteArray> GetPatches(PatcherLib.Datatypes.Context context) { var result = new List <PatchedByteArray>(2); var bytes = ToByteArray(); if (context == Context.US_PSX) { result.Add(PatcherLib.Iso.PsxIso.Propositions.GetPatchedByteArray(bytes)); foreach (var good in goodPsxInstructions) { result.Add(new PatchedByteArray(PatcherLib.Iso.PsxIso.Sectors.WORLD_WLDCORE_BIN, good.Item1, good.Item2.ToArray())); } } else if (context == Context.US_PSP) { PatcherLib.Iso.PspIso.Propositions.ForEach(kp => result.Add(kp.GetPatchedByteArray(bytes))); } return(result); }
public string GetCodeHeader(PatcherLib.Datatypes.Context context) { return(context == Context.US_PSP ? "_C0 Propositions" : "\"Propositions"); }