Skip to content

Commit

Permalink
add support for new Steam libraryfolders.vdf
Browse files Browse the repository at this point in the history
  • Loading branch information
nbusseneau committed Dec 13, 2022
1 parent 39e7654 commit a61a7cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Add support for new Steam library configuration file.

## [1.7.5] - 2022-10-27

### Added
Expand Down
6 changes: 5 additions & 1 deletion hephaistos/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,17 @@ class HadesNotFound(FileNotFoundError): ...

TRY_STEAM = {
Platform.WINDOWS: [
os.path.expandvars(r'%programfiles%\Steam\config'),
os.path.expandvars(r'%programfiles(x86)%\Steam\config'),
os.path.expandvars(r'%programfiles%\Steam\steamapps'),
os.path.expandvars(r'%programfiles(x86)%\Steam\steamapps'),
],
Platform.MACOS: [
os.path.expanduser(r'~/Library/Application Support/Steam/config'),
os.path.expanduser(r'~/Library/Application Support/Steam/SteamApps'),
],
Platform.LINUX: [ # Proton wrapper library path
os.path.expanduser(r'~/.steam/steam/config'),
os.path.expanduser(r'~/.steam/steam/steamapps'),
],
}
Expand Down Expand Up @@ -142,7 +146,7 @@ def try_detect_hades_dirs() -> list[Path]:
potential_hades_dirs.append(Path(heroic_config_json['Min']['install_path']))
except KeyError:
pass
return [hades_dir for hades_dir in potential_hades_dirs if hades_dir.exists() and is_valid_hades_dir(hades_dir, False)]
return set([hades_dir for hades_dir in potential_hades_dirs if hades_dir.exists() and is_valid_hades_dir(hades_dir, False)])


def __try_windows_save_dirs() -> list[Path]:
Expand Down

0 comments on commit a61a7cc

Please sign in to comment.