fix(gog): escape batch characters only in GOG task arguments

This commit is contained in:
maxjivi05 committed 2026-12-01 18:17:24 -05:00
1 parent 70ee78f6e2
commit 334fc86b20
1 file changed
+1 -1
@@ -48,7 +48,7 @@ object StoreLaunch {
if (sidecar.store != Store.ROCKSTAR) lines += "rem Written by DroidDeck for ${sidecar.store.label}: ${sidecar.title}. Steam's shortcut runs this file."
lines += "cd /d \"%~dp0$dir\""
for ((k, v) in sidecar.env) if (ENV_NAME.matches(k)) lines += "set \"$k=${v.replace("\"", "")}\""
val args = sidecar.args.joinToString(" ") { if (sidecar.store == Store.ROCKSTAR || it.any { c -> c in BATCH_META }) batchArg(it) else quoteArg(it) }
val args = sidecar.args.joinToString(" ") { if (sidecar.store == Store.ROCKSTAR || sidecar.store == Store.GOG && it.any { c -> c in BATCH_META }) batchArg(it) else quoteArg(it) }
val run = "\"%~dp0$exe\"" + (if (args.isNotEmpty()) " $args" else "")
if (sidecar.store == Store.EPIC || sidecar.store == Store.UBISOFT) {
lines += "set \"$ROOT_VAR=Z:\""