Skip to content

Commit

Permalink
[FIX] Disabling DXVK-NVAPI on Proton 9.0 (#3592)
Browse files Browse the repository at this point in the history
* [FIX] Disabling DXVK-NVAPI on Proton 9.0

* fix bugs
  • Loading branch information
Etaash-mathamsetty authored Mar 9, 2024
1 parent 34d861c commit 9b0982c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,15 @@ function setupWineEnvVars(gameSettings: GameSettings, gameId = '0') {
if (!gameSettings.enableFsync && wineVersion.type === 'proton') {
ret.PROTON_NO_FSYNC = '1'
}
if (gameSettings.autoInstallDxvkNvapi && wineVersion.type === 'proton') {
ret.PROTON_ENABLE_NVAPI = '1'
ret.DXVK_NVAPI_ALLOW_OTHER_DRIVERS = '1'
if (wineVersion.type === 'proton') {
if (gameSettings.autoInstallDxvkNvapi) {
ret.PROTON_ENABLE_NVAPI = '1'
ret.DXVK_NVAPI_ALLOW_OTHER_DRIVERS = '1'
}
// proton 9 enabled NVAPI by default
else {
ret.PROTON_DISABLE_NVAPI = '1'
}
}
if (gameSettings.autoInstallDxvkNvapi && wineVersion.type === 'wine') {
ret.DXVK_ENABLE_NVAPI = '1'
Expand Down

0 comments on commit 9b0982c

Please sign in to comment.