mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-05-23 21:57:40 +08:00
Set env:SteamAppPath in steamclient_loader.
This commit is contained in:
parent
8e8355c013
commit
629473b53e
@ -127,6 +127,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
|
|||||||
}
|
}
|
||||||
SetEvent(SharedMemFileLock);
|
SetEvent(SharedMemFileLock);
|
||||||
|
|
||||||
|
// Create env.
|
||||||
|
SetEnvironmentVariableW(L"SteamAppPath", ExeRunDir);
|
||||||
|
|
||||||
WCHAR CommandLine[8192];
|
WCHAR CommandLine[8192];
|
||||||
_snwprintf(CommandLine, _countof(CommandLine), L"\"%ls\" %ls", ExeFile, ExeCommandLine);
|
_snwprintf(CommandLine, _countof(CommandLine), L"\"%ls\" %ls", ExeFile, ExeCommandLine);
|
||||||
if (!ExeFile[0] || !CreateProcessW(ExeFile, CommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo))
|
if (!ExeFile[0] || !CreateProcessW(ExeFile, CommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user