HGL
exotic-emerald

How to get the Wine executable path in pre-launch script?

These are the environment variables that are set:
const scriptEnv = {
HEROIC_GAME_APP_NAME: gameInfo.app_name,
HEROIC_GAME_EXEC: gameInfo.install.executable,
HEROIC_GAME_PREFIX: gameSettings.winePrefix,
HEROIC_GAME_RUNNER: gameInfo.runner,
HEROIC_GAME_SCRIPT_STAGE: scriptStage,
HEROIC_GAME_TITLE: gameInfo.title,
...process.env
}
const scriptEnv = {
HEROIC_GAME_APP_NAME: gameInfo.app_name,
HEROIC_GAME_EXEC: gameInfo.install.executable,
HEROIC_GAME_PREFIX: gameSettings.winePrefix,
HEROIC_GAME_RUNNER: gameInfo.runner,
HEROIC_GAME_SCRIPT_STAGE: scriptStage,
HEROIC_GAME_TITLE: gameInfo.title,
...process.env
}
However, none of them contains information about the Wine executable. I also tried PROTONPATH, but it seems not to be set in the pre-launch script environment. I think it would be nice if the whole gameSettings can be exposed as a JSON in the script environment?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?