Skip to content

Commit

Permalink
Add support for Coral Island
Browse files Browse the repository at this point in the history
Closes #161
  • Loading branch information
Z1ni committed Jul 3, 2024
1 parent b46fb51 commit 97d1016
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Legend: ✅ Confirmed working, ❔ Unconfirmed, - Not available in the store
| Chained Echoes |||
| Chorus |||
| Control |||
| Coral Island || - |
| Final Fantasy XV || - |
| Forza Horizon 5 || - |
| Fuga: Melodies of Steel 2 |||
Expand Down
6 changes: 6 additions & 0 deletions games.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@
"name": "Railway Empire 2",
"package": "KalypsoMediaGroup.RailwayEmpire2Win_e60j8nnj33ga6",
"handler": "railway-empire-2"
},
// Coral Island
{
"name": "Coral Island",
"package": "HumbleBundle.CoralIsland_q2mcdwmzx4qja",
"handler": "coral-island"
}
]
}
10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,16 @@ def get_save_paths(
continue
save_meta.append((container["name"], file["path"]))

elif handler_name == "coral-island":
# 1c1f with ".sav" suffix, but if the file name is prefixed with "Backup", we place it in a folder
# without the prefix.
for container in containers:
fname = f"{container['name']}.sav"
if fname.startswith("Backup"):
fname = f"Backup/{fname.removeprefix('Backup')}"
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 97d1016

Please sign in to comment.