Skip to content

Commit

Permalink
Add support for Lies of P
Browse files Browse the repository at this point in the history
  • Loading branch information
Z1ni committed Sep 23, 2023
1 parent 6603432 commit 4d9acac
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Legend: ✅ Confirmed working, ❔ Unconfirmed, - Not available in the store
| Game | Tested w/ Steam | Tested w/ Epic |
|-|-|-|
| Starfield || - |
| Lies of P || - |
| High on Life |||
| A Plague Tale: Requiem |||
| Yakuza 0 || - |
Expand Down
21 changes: 20 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"Final Fantasy XV": "39EA002F.FINALFANTASYXVforPC_n746a19ndrrjg",
"Starfield": "BethesdaSoftworks.ProjectGold_3275kfvn8vcwc",
"A Plague Tale: Requiem": "FocusHomeInteractiveSA.APlagueTaleRequiem-Windows_4hny5m903y3g0",
"High on Life": "2637SquanchGamesInc.HighonLife_mh7dg3tfmz2cj"
"High on Life": "2637SquanchGamesInc.HighonLife_mh7dg3tfmz2cj",
"Lies of P": "Neowiz.3616725F496B_r4z3116tdh636"
}

filetime_epoch = datetime(1601, 1, 1, tzinfo=timezone.utc)
Expand Down Expand Up @@ -331,6 +332,24 @@ def get_save_paths(store_pkg_name, containers, temp_dir):

save_meta.append((sfs_name, sfs_path))

elif store_pkg_name == supported_xgp_apps["Lies of P"]:
# Lies of P
for container in containers:
fname: str = container["name"]
# Lies of P prefixes the save file names with a numeric ID
# Filter the numbers out
for i, c in enumerate(fname):
if c.isdigit():
continue
fname = fname[i:]
break

# The names also need a ".sav" suffix
fname += ".sav"
fpath = container["files"][0]["path"]

save_meta.append((fname, fpath))

else:
raise Exception("Unsupported XGP app \"%s\"" % store_pkg_name)

Expand Down

0 comments on commit 4d9acac

Please sign in to comment.