mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Sm broken start location fix (#841)
* - fixed basepatches application order breaking (at least) starting location
This commit is contained in:
@@ -697,7 +697,7 @@ class VariaRandomizer:
|
||||
#if args.patchOnly == False:
|
||||
# randoExec.postProcessItemLocs(itemLocs, args.hideItems)
|
||||
|
||||
def PatchRom(self, outputFilename, customPatchApply = None):
|
||||
def PatchRom(self, outputFilename, customPrePatchApply = None, customPostPatchApply = None):
|
||||
args = self.args
|
||||
optErrMsgs = self.optErrMsgs
|
||||
|
||||
@@ -749,6 +749,9 @@ class VariaRandomizer:
|
||||
else:
|
||||
romPatcher = RomPatcher(magic=args.raceMagic)
|
||||
|
||||
if customPrePatchApply != None:
|
||||
customPrePatchApply(romPatcher)
|
||||
|
||||
if args.hud == True or args.majorsSplit == "FullWithHUD":
|
||||
args.patches.append("varia_hud.ips")
|
||||
if args.patchOnly == False:
|
||||
@@ -767,8 +770,8 @@ class VariaRandomizer:
|
||||
# don't color randomize custom ships
|
||||
args.shift_ship_palette = False
|
||||
|
||||
if customPatchApply != None:
|
||||
customPatchApply(romPatcher)
|
||||
if customPostPatchApply != None:
|
||||
customPostPatchApply(romPatcher)
|
||||
|
||||
# we have to write ips to ROM before doing our direct modifications which will rewrite some parts (like in credits),
|
||||
# but in web mode we only want to generate a global ips at the end
|
||||
|
Reference in New Issue
Block a user