Skip to content

Commit

Permalink
Use steam and vdf dependency by Solstice Game Studios (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidoTek authored Jul 27, 2024
1 parent f0519ae commit e8197bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ ProtonUp-Qt|GPL-3.0
[PySide6](https://pypi.org/project/PySide6/)|LGPL-3.0/GPL-2.0
[inputs](https://pypi.org/project/inputs/)|BSD
[pyxdg](https://pypi.org/project/pyxdg/)|LGPLv2
[vdf](https://pypi.org/project/vdf/)|MIT
[vdf@solstice](https://github.com/solsticegamestudios/vdf/)|MIT
[steam@solstice](https://github.com/solsticegamestudios/steam/)|MIT
[requests](https://pypi.org/project/requests/)|Apache 2.0
[PyYAML](https://pypi.org/project/PyYAML/)|MIT
4 changes: 2 additions & 2 deletions pupgui2/steamutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _get_steam_ctool_info(steam_config_folder: str) -> Dict[str, Dict[str, str]]
compat_tools = {}
try:
with open(appinfo_file, 'rb') as f:
header, apps = parse_appinfo(f)
header, apps = parse_appinfo(f, mapper=dict)
for steam_app in apps:
if steam_app.get('appid') == 891390:
compat_tools = steam_app.get('data').get('appinfo').get('extended').get('compat_tools')
Expand Down Expand Up @@ -285,7 +285,7 @@ def update_steamapp_info(steam_config_folder: str, steamapp_list: List[SteamApp]
try:
ctool_map = _get_steam_ctool_info(steam_config_folder)
with open(appinfo_file, 'rb') as f:
_, apps = parse_appinfo(f)
_, apps = parse_appinfo(f, mapper=dict)
for steam_app in apps:
appid_str = str(steam_app.get('appid'))
if a := sapps.get(appid_str):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PySide6-Essentials>=6.3.0
requests>=2.27.0
vdf>=3.4
vdf @ git+https://github.com/solsticegamestudios/vdf@master
inputs==0.5
pyxdg>=0.27
steam>=1.4.4
steam @ git+https://github.com/solsticegamestudios/steam@master
PyYAML>=6.0
zstandard>=0.19.0

0 comments on commit e8197bc

Please sign in to comment.