Skip to content

Commit 492aec0

Browse files
[Fix] Some default settings not being applied (#3543)
fix some default settings not being applied
1 parent 2b0b6c9 commit 492aec0

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/backend/game_config.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ class GameConfigV0 extends GameConfig {
207207

208208
const {
209209
autoInstallDxvk,
210+
autoInstallDxvkNvapi,
210211
autoInstallVkd3d,
211212
preferSystemLibs,
212213
autoSyncSaves,
@@ -227,13 +228,16 @@ class GameConfigV0 extends GameConfig {
227228
winePrefix,
228229
wineCrossoverBottle,
229230
wineVersion,
230-
useSteamRuntime
231+
useSteamRuntime,
232+
eacRuntime,
233+
battlEyeRuntime
231234
} = GlobalConfig.get().getSettings()
232235

233236
// initialize generic defaults
234237
// TODO: I know more values can be moved that are not used in windows
235238
const defaultSettings = {
236239
autoInstallDxvk,
240+
autoInstallDxvkNvapi,
237241
autoInstallVkd3d,
238242
preferSystemLibs,
239243
autoSyncSaves,
@@ -252,6 +256,8 @@ class GameConfigV0 extends GameConfig {
252256
targetExe,
253257
useGameMode,
254258
useSteamRuntime,
259+
battlEyeRuntime,
260+
eacRuntime,
255261
language: '' // we want to fallback to '' always here, fallback lang for games should be ''
256262
} as GameSettings
257263

src/backend/launcher.ts

-12
Original file line numberDiff line numberDiff line change
@@ -381,18 +381,6 @@ async function prepareWineLaunch(
381381
await download('battleye_runtime')
382382
}
383383

384-
if (gameSettings.eacRuntime && !isInstalled('eac_runtime') && isOnline()) {
385-
await download('eac_runtime')
386-
}
387-
388-
if (
389-
gameSettings.battlEyeRuntime &&
390-
!isInstalled('battleye_runtime') &&
391-
isOnline()
392-
) {
393-
await download('battleye_runtime')
394-
}
395-
396384
const { folder_name: installFolderName } =
397385
gameManagerMap[runner].getGameInfo(appName)
398386
const envVars = setupWineEnvVars(gameSettings, installFolderName)

0 commit comments

Comments
 (0)