mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 04:46:08 +00:00
fix: find GOG Galaxy SDK cloud saves when remote-config lists no locations (#970)
* fix: find GOG Galaxy SDK cloud saves when remote-config lists no locations cloudStorage.enabled with an empty locations list is Galaxy SDK IStorage under __default. DroidDeck treated that as no cloud. Use the SDK folder, strip/prefix the __default namespace, and inflate gzip bodies GOG stores on download. An empty cached template is fetched again so devices that already recorded "no cloud" recover. * fix: keep an empty GOG namespace, expire cached none, close gzip An explicit empty cloud_namespace is Auto Cloud and must not become __default just because the path template looks like Galaxy storage. A cached none is retried after a day so a later enablement is picked up. GZIPInputStream is closed after a compressed download. * fix: peel GOG cloud gzip only when the service or PUT compressor says so GET asks for identity encoding so the body is what GOG stored. A Content-Encoding of gzip is inflated once. Otherwise a gzip body is inflated only when it round-trips as GOG's PUT gzip (deflate 6, mtime 0), so a gzip-format save is not rewritten. * Reject corrupt GOG cloud downloads --------- Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com> Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
7 files changed
+245
-34
No files matched your search
@@ -268,7 +268,12 @@ the prefix's user folder appears, within a minute. Every path logs
|
||||
`CloudSaveFolder`, e.g. `{AppData}/Game/Saved/SaveGames`. `CloudSavePaths` expands it inside the
|
||||
game's prefix (`compatdata/<shortcut appid>/pfx/drive_c/users/steamuser`) or its install folder,
|
||||
case-insensitively, and refuses a path that leaves its boundary. A game whose store gives none
|
||||
has no cloud saves.
|
||||
has no cloud saves; a cached none is retried after a day.
|
||||
- **Galaxy SDK saves:** `cloudStorage.enabled` with an empty `locations` list is Galaxy SDK
|
||||
IStorage, whose objects live under a location named `__default` in
|
||||
`%LocalAppData%/GOG.com/Galaxy/Applications/<clientId>/Storage/Shared/Files`. It goes through the
|
||||
same location-qualified handling below. GET peels gzip when `Content-Encoding` is gzip, or when
|
||||
the object round-trips as GOG's PUT gzip (deflate 6, mtime 0); a gzip-format save is left intact.
|
||||
- **GOG names are location-qualified:** the cloud API lists `saves/user1.dat`, where `saves` is the
|
||||
`name` of the selected `cloudStorage.locations` entry and the folder is that entry's `location`
|
||||
(`.../Hollow Knight Silksong/default`). `GogCloud` strips the location segment for the local path
|
||||
|
||||
Reference in new issue
Block a user