Skip to content

Commit

Permalink
fix: use gameInstallPath for STEAM_COMPAT_INSTALL_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
imLinguin committed Jan 8, 2025
1 parent 0e3a37b commit 0e6e563
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ async function runWineCommand({
wait,
protonVerb = 'run',
installFolderName,
gameInstallPath,
options,
startFolder,
skipPrefixCheckIKnowWhatImDoing = false,
Expand Down Expand Up @@ -1153,7 +1154,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
7 changes: 3 additions & 4 deletions src/backend/storeManagers/gog/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ async function setup(
gameSettings,
wait: false,
protonVerb: 'run',
installFolderName: gameInfo.install.install_path,
gameInstallPath: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true,
startFolder: gameInfo.install.install_path
})
Expand Down Expand Up @@ -266,7 +266,7 @@ async function setup(
gameSettings,
wait: false,
protonVerb: 'run',
installFolderName: gameInfo.install.install_path,
gameInstallPath: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true,
startFolder: gameInfo.install.install_path
})
Expand Down Expand Up @@ -312,7 +312,7 @@ async function setup(
gameSettings,
wait: false,
protonVerb: 'run',
installFolderName: gameInfo.install.install_path,
gameInstallPath: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true,
startFolder: gameInfo.install.install_path
})
Expand Down Expand Up @@ -388,7 +388,6 @@ async function setup(
startFolder: gogRedistPath,
wait: false,
protonVerb: 'run',
installFolderName: gameInfo.install.install_path,
skipPrefixCheckIKnowWhatImDoing: true, // We are running those commands after we check if prefix is valid, this shouldn't cause issues
gameInstallPath: gameInfo.install.install_path!
})
Expand Down
2 changes: 1 addition & 1 deletion src/backend/storeManagers/legendary/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const legendarySetup = async (appName: string) => {
) {
await runWineCommand({
gameSettings,
installFolderName: gameInfo.install.install_path,
gameInstallPath: gameInfo.install.install_path,
commandParts: [
join(
gameInfo.install.install_path ?? '',
Expand Down

0 comments on commit 0e6e563

Please sign in to comment.