Skip to content

Commit

Permalink
Merge pull request #430 from Maoijoon/feature/wine-check
Browse files Browse the repository at this point in the history
Add Wine to PATH if it's bundled in FPSoftware
  • Loading branch information
colin969 authored Jul 31, 2024
2 parents b582f84 + 9e671bb commit a1f3cb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/back/GameLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ export namespace GameLauncher {
...newEnvVars, 'WINEDEBUG': 'fixme-all',
...(proxy !== '' ? {'http_proxy': `http://${proxy}/`, 'HTTP_PROXY': `http://${proxy}/`} : null)
};
// If WINE's bin directory exists in FPSoftware, add it to the PATH
if (fs.existsSync(`${fpPath}/FPSoftware/Wine/bin`)) {
newEnvVars = {
...newEnvVars, 'PATH': `${fpPath}/FPSoftware/Wine/bin:` + process.env.PATH
}
}
}
return {
// Copy this processes environment variables
Expand Down

0 comments on commit a1f3cb6

Please sign in to comment.