Skip to content

Game paths wrong in autoconfig.py when Game is not installed in default Directory #49

Description

@d4rk0ne

when joining the paths with the defaults from data.py it results in wrong gamepaths.
location of issue:

settings_to_persist = os.path.join(league_path, Info.settings_to_persist_path)

persisted_settings = os.path.join(league_path, Info.persisted_settings_path)

example:
data.py:

Info.game_files_path = '\Riot Games\League of Legends'
Info.settings_to_persist = 'DATA\CFG\defaults\SettingsToPersist.json'
Info.settings_to_persist_path = path.join(game_files_path, settings_to_persist)

results in '\Riot Games\League of Legends\DATA\CFG\defaults\SettingsToPersist.json'

when you join this with league_path from autoconfig.py it will look like:

league_path = "C:\Games\Riot Games\League of Legends"
settings_to_persist = os.path.join('C:\Games\Riot Games\League of Legends', '\\Riot Games\\League of Legends\\DATA\\CFG\\defaults\\SettingsToPersist.json')

resulting wrongly in:
C:\Riot Games\League of Legends\DATA\CFG\defaults\SettingsToPersist.json

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions