mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
fixed paths
This commit is contained in:
parent
5909f884e7
commit
c9ef521f53
@ -1166,7 +1166,7 @@ def parse_butler_db(content):
|
||||
def dbpath_to_game(paths):
|
||||
# Convert the Windows-style path from the database to a Unix-style path
|
||||
db_path = paths[0].replace("\\\\", "/").replace("C:", "")
|
||||
linux_path = "/home/deck/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c" + db_path
|
||||
linux_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{itchio_launcher}/pfx/drive_c" + db_path
|
||||
receipt_path = os.path.join(linux_path, ".itch", "receipt.json.gz")
|
||||
if not os.path.exists(receipt_path):
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user