fix: Start without Steam uses the launch options set in Steam's Properties (#1552)

* fix: Start without Steam uses the launch options set in Steam's Properties

* fix: treat a malformed shortcuts.vdf as having no launch options
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-25 11:50:44 -04:00
1 parent 709c041b24
commit 9cecd528e8
4 files changed
+81 -3

No files matched your search

@@ -37,7 +37,9 @@ object NoSteamLaunch {
fun addedCommand(game: AddedGames.Game): Command = Command(
PROTON_RUN,
listOf("--app", (game.appId and 0xFFFFFFFFL).toString(), "--dir", game.guestDir, "--options", game.launchOptions, "--", game.guestExe),
listOf("--app", (game.appId and 0xFFFFFFFFL).toString(), "--dir", game.guestDir) +
(if (game.launchOptions.isEmpty()) emptyList() else listOf("--options", game.launchOptions)) +
listOf("--", game.guestExe),
game.name,
)