mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 21:35:59 +00:00
Stores: GOG and Epic cloud saves
Ported from Bannerlator's cloud-save managers. Before every launch the cloud copy comes down where it is newer: droiddeck-store-launch asks the app and waits up to 15 s. For a store game with cloud saves it tells the compat tool so, and the tool waits for Proton instead of exec'ing it, then asks for the upload without waiting. Newest wins per file, with an MD5 check so a file the game only touched is not sent again; a download first copies the folder to the app's storage (last three kept). The save folder is GOG's remote-config location template (by the game's Galaxy client id) or Epic's CloudSaveFolder catalog attribute, expanded inside the game's Proton prefix or install folder by CloudSavePaths, which refuses a path that leaves its boundary. GOG uploads with a token issued to the game's own client (its secret is kept at install from now on), Epic with signed write links. The GOG and Epic cards get a Cloud saves switch kept in the sidecar; Manage saves shows the last sync with Upload and Download, or No cloud saves.
This commit is contained in:
1 parent
935b70c585
commit
1580e3ee64
17 files changed
+853
-41
No files matched your search
@@ -144,6 +144,14 @@ without it and Setup says "Stores engine not built").
|
||||
(`token`, `__token__`, `f_token`, `hdnts`, access/refresh/id tokens, `code=`) and Authorization /
|
||||
Cookie headers are blanked outside URLs too. `StoreLogTest` covers a GOG secure link and an Epic
|
||||
Akamai URL. The engine's own logcat lines (tag `EpicNative` etc.) are written on the native side.
|
||||
- **GOG and Epic cloud saves** (ported from Bannerlator's managers, device-proven there in August):
|
||||
down before every launch where the cloud copy is newer (the compat tool waits up to 15 s), up
|
||||
after the game exits (the compat tool waits for Proton for such a game, then asks without
|
||||
waiting), newest wins per file with an MD5 check, a backup of what a download overwrites (last
|
||||
three). The save folder comes from GOG's remote-config template or Epic's CloudSaveFolder,
|
||||
expanded inside the game's prefix (`CloudSavePaths`, Bannerlator's cases as tests). A "Cloud
|
||||
saves" switch on the GOG / Epic card, and cloud rows in Manage saves (last sync, Upload,
|
||||
Download, "No cloud saves"). Not yet device-tested.
|
||||
- **Epic sign-in device-proven without the overlay (AYANEO Pocket FIT, `bf81104`, Metalstorm):** EOS's
|
||||
corrective-action browser flow → `droiddeck xdg-open: https://www.epicgames.com` → Chrome
|
||||
`epicgames.com/id/authorize?user_code=…` → approved → `[eos] got logged in`, product user id
|
||||
|
||||
Reference in new issue
Block a user