diff --git a/src/backend/launcher.ts b/src/backend/launcher.ts index 859e9253b8..ecc175f458 100644 --- a/src/backend/launcher.ts +++ b/src/backend/launcher.ts @@ -69,6 +69,7 @@ import { createAbortController, deleteAbortController } from './utils/aborthandler/aborthandler' +import { download, isInstalled } from './wine/runtimes/runtimes' async function prepareLaunch( gameSettings: GameSettings, @@ -269,6 +270,14 @@ async function prepareWineLaunch( } } + if (gameSettings.eacRuntime && !isInstalled('eac_runtime')) { + download('eac_runtime') + } + + if (gameSettings.battlEyeRuntime && !isInstalled('battleye_runtime')) { + download('battleye_runtime') + } + const { folder_name: installFolderName, install } = gameManagerMap[runner].getGameInfo(appName) const envVars = setupWineEnvVars(