mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
Games: old Games folders become entries, not Steam libraries (#542)
Games folders saved before the settings section went away were still registered as Steam libraries on Automatic, with no way left to remove them. Once, at app start and before any scan, each game such a folder listed becomes an entry of its own, keeping everything keyed by its folder (chosen exe, shortcut appid, name, Start in, launch options, art, removal); store installs and steamapps are skipped. The folders stay bound at their old guest paths, so no shortcut changes, and the saved roots are cleared. A Games folder stays a library only when Steam installed a game into it; the others leave the library list, and the runtime forgets them.
This commit is contained in:
1 parent
fe60b3c279
commit
abbcb8e3ad
12 files changed
+266
-30
No files matched your search
@@ -7,6 +7,25 @@ the timeline, then lessons and backlog. Companion to the README (what the app *d
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-10 - `fix/games-folder-migration`: Games folders become entries, not Steam libraries
|
||||
|
||||
- **Seen on a device:** Steam's Install dialog listed "Games (Internal shared storage)" and "Games
|
||||
(android)", the user's two Games folders saved before #492, still registered as libraries
|
||||
while Second library is Automatic; with the settings section gone they could not be removed.
|
||||
- **Migration** (`GamesFolderMigration`, once at app start and before any scan, idempotent):
|
||||
every game a Games folder listed becomes an entry (`AddedExes`), keeping its chosen exe, stored
|
||||
appid, name / Start in / launch-option overrides, art choices and removal (all keyed by its
|
||||
folder). Store installs and `steamapps` are skipped. The folders stay bound at their old guest
|
||||
paths (`SessionPrefs.gameFolderBinds`), so the listing and every Steam shortcut are unchanged;
|
||||
`addedGamesDirs` is cleared. Log: `games: migrated <root> → N games`.
|
||||
- **Libraries:** `GameStorage.gamesFolderLibraries` returns only a Games folder Steam installed
|
||||
into (an appmanifest in its `steamapps/`); the others drop out of `BL_STEAM_LIBRARIES` and the
|
||||
runtime's `droiddeck-steam-library` forgets the `/root/Games/...` entries it had registered.
|
||||
The user's two folders have `steamapps/` without manifests (checked on the device), so both go.
|
||||
- **Tests:** `GamesFolderMigrationTest` (exe / appid / name / removal kept, guest paths unchanged,
|
||||
idempotent, store and steamapps skipped, libraries empty, same-name folders), `GameStorageTest`
|
||||
updated. Not yet on a device.
|
||||
|
||||
## 2026-10-09 - `feat/games-add-edit`: add games from the Games tab, edit them like Steam's Properties
|
||||
|
||||
- **Steam ⚙ settings:** the Games section is gone (it was a feature, not a setting). Games
|
||||
|
||||
Reference in new issue
Block a user