mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
Steam imports: read only the linked manifest, and leave staged ones alone
seed_install read the app's manifest from every library before checking that it was the linked DroidDeck install, so a manifest in another library that is not UTF-8 raised past the caller and stopped routing for later games. It now returns before reading anything but the linked manifest. An untouched manifest from an older version was migrated even while steamapps/downloading/<appid> existed; that migration now waits until Steam is not staging the app, like the rewrite of a queued import.
This commit is contained in:
1 parent
1ec1c20be1
commit
fcbd45453f
2 files changed
+28
-5
No files matched your search
@@ -461,13 +461,15 @@ def seed_install(steam_root, game, appid):
|
||||
for root in libraries(steam_root):
|
||||
existing = root / "steamapps" / manifest.name
|
||||
if existing.is_file():
|
||||
if not (existing == manifest and source.is_dir() and target.is_symlink()
|
||||
and os.readlink(target) == str(source)):
|
||||
return True
|
||||
text = existing.read_text()
|
||||
linked = (existing == manifest and source.is_dir() and target.is_symlink()
|
||||
and os.readlink(target) == str(source))
|
||||
if linked and build is None and update_not_started(text, steamapps, appid, name):
|
||||
staging = (steamapps / "downloading" / str(appid)).exists()
|
||||
if build is None and update_not_started(text, steamapps, appid, name):
|
||||
wanted = update_on_launch(text)
|
||||
elif linked and (text in (minimal, bare, legacy, legacy.replace('"StateFlags" "4"', '"StateFlags" "2"'))
|
||||
or (build is not None and update_not_started(text, steamapps, appid, name))):
|
||||
elif ((text in (minimal, bare, legacy, legacy.replace('"StateFlags" "4"', '"StateFlags" "2"')) and not staging)
|
||||
or (build is not None and update_not_started(text, steamapps, appid, name))):
|
||||
wanted = content
|
||||
else:
|
||||
wanted = text
|
||||
|
||||
Reference in new issue
Block a user