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

@@ -61,6 +61,8 @@ class NoSteamLaunchTest {
listOf("--app", "2733369024", "--dir", game.guestDir, "--options", "-windowed", "--", game.guestExe),
added.args,
)
val plain = NoSteamLaunch.addedCommand(AddedGames.Game(game.folder, game.name, game.exe, game.guestExe, game.guestDir, 2733369024L, 0L, emptyList(), source = "gog"))
assertEquals(listOf("--app", "2733369024", "--dir", game.guestDir, "--", game.guestExe), plain.args)
assertNull(NoSteamLaunch.command(shortcut, null))
val steam = NoSteamLaunch.command(steamGame, null)!!
assertEquals(listOf("--app", "413150"), steam.args)