Skip to content

Commit b520df1

Browse files
committed
Fix Heroic does not respect launch arguments on custom added windows games (v2.5.0beta1) #1977
1 parent f8f206c commit b520df1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backend/launcher.ts

+5
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ async function runWineCommand({
537537

538538
return new Promise<{ stderr: string; stdout: string }>((res) => {
539539
const wrappers = options?.wrappers || []
540+
const { launcherArgs = '' } = settings
540541
let bin = ''
541542
if (wrappers.length) {
542543
bin = wrappers.shift()!
@@ -545,6 +546,10 @@ async function runWineCommand({
545546
bin = wineBin
546547
}
547548

549+
if (launcherArgs) {
550+
commandParts.push(launcherArgs)
551+
}
552+
548553
const child = spawn(bin, commandParts, {
549554
env: env_vars,
550555
cwd: startFolder

0 commit comments

Comments
 (0)