Skip to content

Commit

Permalink
Add support for State of Decay 2
Browse files Browse the repository at this point in the history
Closes #77
  • Loading branch information
Z1ni committed Jan 27, 2024
1 parent 34a1a82 commit e2787e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Legend: ✅ Confirmed working, ❔ Unconfirmed, - Not available in the store
| Remnant 2 |||
| Remnant: From the Ashes |||
| Starfield || - |
| State of Decay 2 |||
| Totally Accurate Battle Simulator || - |
| Wo Long: Fallen Dynasty || - |
| Yakuza 0 || - |
Expand Down
6 changes: 6 additions & 0 deletions games.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@
"name": "Arcade Paradise",
"package": "WiredProductions.ArcadeParadise_hxzk6evwjr6sy",
"handler": "arcade-paradise"
},
// State of Decay 2
{
"name": "State of Decay 2",
"package": "Microsoft.Dayton_8wekyb3d8bbwe",
"handler": "state-of-decay-2"
}
]
}
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ def get_save_paths(
fpath = containers[0]["files"][0]["path"]
save_meta.append(("RATSaveData.dat", fpath))

elif handler_name == "state-of-decay-2":
# This is otherwise identical to 1cnf, but we ignore the path in the file names
for file in containers[0]["files"]:
fname = file["name"].split("/")[-1] + ".sav"
save_meta.append((fname, file["path"]))
else:
raise Exception('Unsupported XGP app "%s"' % store_pkg_name)

Expand Down

0 comments on commit e2787e5

Please sign in to comment.