mirror of
https://github.com/ValveSoftware/Proton
synced 2025-08-22 10:17:18 +00:00
steam_helper: Add SteamPath and ValvePlatformMutex env vars.
CW-Bug-Id: #25738
This commit is contained in:
parent
d008ef6f10
commit
6c17f3e1a1
@ -801,6 +801,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (getenv("SteamGameId"))
|
if (getenv("SteamGameId"))
|
||||||
{
|
{
|
||||||
|
WCHAR path[MAX_PATH], *p;
|
||||||
|
|
||||||
/* do setup only for game process */
|
/* do setup only for game process */
|
||||||
event = CreateEventW( NULL, FALSE, FALSE, L"Steam3Master_SharedMemLock" );
|
event = CreateEventW( NULL, FALSE, FALSE, L"Steam3Master_SharedMemLock" );
|
||||||
|
|
||||||
@ -811,6 +813,17 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
set_active_process_pid();
|
set_active_process_pid();
|
||||||
|
|
||||||
|
SetEnvironmentVariableW(L"SteamPath", L"C:\\Program Files (x86)\\Steam");
|
||||||
|
*path = 0;
|
||||||
|
GetModuleFileNameW(NULL, path, ARRAY_SIZE(path));
|
||||||
|
p = path;
|
||||||
|
while (*p)
|
||||||
|
{
|
||||||
|
if (*p == '\\') *p = '/';
|
||||||
|
++p;
|
||||||
|
}
|
||||||
|
SetEnvironmentVariableW(L"ValvePlatformMutex", path);
|
||||||
|
|
||||||
setup_steam_registry();
|
setup_steam_registry();
|
||||||
setup_steam_files();
|
setup_steam_files();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user