feat(steam): adopt game folders found in added libraries (#2317)

* feat: adopt game folders in added Steam libraries

* Share the appmanifest builder between steam-library and steam-games

* steam: load the shared compatibility module once per run

* Guard unreadable game folders during library adoption

---------

Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
MaxsTechReviewandKurt Himebauch authored and GitHub committed 2026-11-17 11:25:04 -05:00
1 parent c31f19a9f0
commit b88b5f6b1d
6 files changed
+262 -4

No files matched your search

+11
View File
@@ -64,6 +64,17 @@ inherit those routes. Managed shortcuts are replaced; user-created shortcuts and
unreadable shortcut files are preserved. Both routes use the existing ARM64 Proton
registration.
## Adopting shared library folders
At every session start, `droiddeck-steam-library` looks through `steamapps/common` of each
added library for non-empty folders no manifest names. A folder whose name is the
`config.installdir` of exactly one playable app in `appcache/appinfo.vdf` (the `game`
type wins over a demo; tools, DLC and ambiguous names are skipped) gets an
`appmanifest_<id>.acf` with `Universe=1`, `StateFlags=4` and no build, so Steam verifies
the existing files and downloads only what differs. Existing manifests are never
rewritten, an app installed in another library is skipped, and only the added library is
written to. Ownership is not read before the client runs; Steam enforces the license.
## Launcher artwork
The installed Steam game scan lists each game's `appcache/librarycache/<appid>`