Skip to content

Commit

Permalink
download runtimes if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Etaash-mathamsetty committed Oct 28, 2023
1 parent 186f2ef commit 60c2b5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import {
createAbortController,
deleteAbortController
} from './utils/aborthandler/aborthandler'
import { download, isInstalled } from './wine/runtimes/runtimes'

async function prepareLaunch(
gameSettings: GameSettings,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 60c2b5f

Please sign in to comment.