mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Super Metroid: fix some file paths
This commit is contained in:
@@ -327,7 +327,7 @@ class VariaRandomizer:
|
||||
preset = loadRandoPreset(world, self.player, args)
|
||||
# use the skill preset from the rando preset
|
||||
if preset is not None and preset != 'custom' and preset != 'varia_custom' and args.paramsFileName is None:
|
||||
args.paramsFileName = '{}/{}/{}.json'.format(appDir, getPresetDir(preset), preset)
|
||||
args.paramsFileName = os.path.join(appDir, getPresetDir(preset), preset+".json")
|
||||
|
||||
# if diff preset given, load it
|
||||
if args.paramsFileName is not None:
|
||||
|
@@ -1,6 +1,7 @@
|
||||
from logic.smbool import SMBool
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# the different difficulties available
|
||||
easy = 1
|
||||
@@ -60,7 +61,7 @@ def diff4solver(difficulty):
|
||||
return "mania"
|
||||
|
||||
# allow multiple local repo
|
||||
appDir = sys.path[0]
|
||||
appDir = Path(__file__).parents[4]
|
||||
|
||||
def isKnows(knows):
|
||||
return knows[0:len('__')] != '__' and knows[0] == knows[0].upper()
|
||||
|
Reference in New Issue
Block a user