Skip to content

Commit

Permalink
fix(gog): make sure game directory is mounted in container (#4251)
Browse files Browse the repository at this point in the history
* fix(gog): make sure game directory is mounted in container

* fix: ensure other codepaths have proper access too

* fix: use gameInstallPath for STEAM_COMPAT_INSTALL_PATH
  • Loading branch information
imLinguin authored Jan 11, 2025
1 parent d042144 commit ee5cf44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@ async function runWineCommand({
wait,
protonVerb = 'run',
installFolderName,
gameInstallPath,
options,
startFolder,
skipPrefixCheckIKnowWhatImDoing = false,
Expand Down Expand Up @@ -1155,7 +1156,7 @@ async function runWineCommand({
const env_vars: Record<string, string> = {
...process.env,
GAMEID: 'umu-0',
...setupEnvVars(settings),
...setupEnvVars(settings, gameInstallPath),
...setupWineEnvVars(settings, installFolderName),
PROTON_VERB: protonVerb
}
Expand Down
17 changes: 6 additions & 11 deletions src/backend/storeManagers/gog/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,9 @@ async function setup(
gameSettings,
wait: false,
protonVerb: 'run',
gameInstallPath: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true,
startFolder: path.join(
gogSupportPath,
appName,
supportCommand.gameID
)
startFolder: gameInfo.install.install_path
})
}
}
Expand Down Expand Up @@ -269,8 +266,9 @@ async function setup(
gameSettings,
wait: false,
protonVerb: 'run',
gameInstallPath: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true,
startFolder: gogRedistPath
startFolder: gameInfo.install.install_path
})
}
}
Expand Down Expand Up @@ -314,12 +312,9 @@ async function setup(
gameSettings,
wait: false,
protonVerb: 'run',
gameInstallPath: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true,
startFolder: path.join(
gogSupportPath,
appName,
manifestProduct.productId
)
startFolder: gameInfo.install.install_path
})
}
}
Expand Down
1 change: 1 addition & 0 deletions src/backend/storeManagers/legendary/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const legendarySetup = async (appName: string) => {
) {
await runWineCommand({
gameSettings,
gameInstallPath: gameInfo.install.install_path,
commandParts: [
join(
gameInfo.install.install_path ?? '',
Expand Down

0 comments on commit ee5cf44

Please sign in to comment.