steam_helper: Place Easy Anti Cheat runtime path into PROTON_EAC_RUNTIME.
This commit is contained in:
parent
9a07890d7e
commit
a5d2b67315
1 changed files with 18 additions and 0 deletions
|
@ -158,6 +158,23 @@ static void setup_battleye_bridge(void)
|
||||||
setenv("PROTON_BATTLEYE_RUNTIME", path, 1);
|
setenv("PROTON_BATTLEYE_RUNTIME", path, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void setup_eac_bridge(void)
|
||||||
|
{
|
||||||
|
const unsigned int eac_runtime_appid = 1826330;
|
||||||
|
char path[2048];
|
||||||
|
char *path_end;
|
||||||
|
|
||||||
|
if (!SteamApps()->BIsAppInstalled(eac_runtime_appid))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!SteamApps()->GetAppInstallDir(eac_runtime_appid, path, sizeof(path)))
|
||||||
|
return;
|
||||||
|
|
||||||
|
WINE_TRACE("Found easyanticheat runtime at %s\n", path);
|
||||||
|
|
||||||
|
setenv("PROTON_EAC_RUNTIME", path, 1);
|
||||||
|
}
|
||||||
|
|
||||||
static std::string get_linux_vr_path(void)
|
static std::string get_linux_vr_path(void)
|
||||||
{
|
{
|
||||||
const char *e;
|
const char *e;
|
||||||
|
@ -1350,6 +1367,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
setup_steam_registry();
|
setup_steam_registry();
|
||||||
setup_battleye_bridge();
|
setup_battleye_bridge();
|
||||||
|
setup_eac_bridge();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue