mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user