Skip to content

Commit

Permalink
installer fix save paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Jun 24, 2023
1 parent ac132cc commit 7273ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions installer/Install/Install.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def InstallLDDP(system:Path, settings:dict):
def InstallGMDX(system:Path, settings:dict, exename:str):
game = system.parent
(changes, additions) = GetConfChanges('GMDX')
Mkdir(game/'SaveGMDXRando', exist_ok=True)
# GMDX uses absolute path shortcuts with ini files in their arguments, so it's not as simple to copy their exe

confpath = Path.home() / 'Documents' / 'Deus Ex' / exename / 'System' / 'gmdx.ini'
Expand All @@ -187,6 +188,7 @@ def InstallRevision(system:Path, settings:dict):
def InstallHX(system:Path, settings:dict):
CopyPackageFiles('HX', system.parent, ['HXRandomizer.u'])
(changes, additions) = GetConfChanges('HX')
Mkdir(game/'SaveHXRando', exist_ok=True)
ChangeModConfigs(system, settings, 'HX', 'HX', 'HX', changes, additions, True)
int_source = GetPackagesPath('HX') / 'HXRandomizer.int'
int_dest = system / 'HXRandomizer.int'
Expand All @@ -212,6 +214,7 @@ def CreateModConfigs(system:Path, settings:dict, modname:str, exename:str, in_pl
CopyPackageFiles(modname, system.parent, [modname+'Randomizer.u'])

(changes, additions) = GetConfChanges(modname)
Mkdir(game/('Save'+modname+'Rando'), exist_ok=True)
ChangeModConfigs(system, settings, modname, exename, newexename, changes, additions, in_place)

if settings.get('mirrors'):
Expand Down
2 changes: 1 addition & 1 deletion installer/Install/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def GetConfChanges(modname):
'Root': modname+'Randomizer.DXRandoRootWindow'
},
'Core.System': {
'SavePath': '../Save' + modname + 'Rando'
'SavePath': '..\\Save' + modname + 'Rando'
}
}
syspath = '..\\' + modname + 'Randomizer\\System\\*.u'
Expand Down

0 comments on commit 7273ff7

Please sign in to comment.