From 629473b53e522908776d785a8b16847e27a80b5c Mon Sep 17 00:00:00 2001 From: redpolline <11156324-redpolline@users.noreply.gitlab.com> Date: Sat, 8 Jun 2024 08:21:09 -0400 Subject: [PATCH] Set env:SteamAppPath in steamclient_loader. --- steamclient_loader/ColdClientLoader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/steamclient_loader/ColdClientLoader.cpp b/steamclient_loader/ColdClientLoader.cpp index ed59f24..8b15871 100644 --- a/steamclient_loader/ColdClientLoader.cpp +++ b/steamclient_loader/ColdClientLoader.cpp @@ -127,6 +127,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance } SetEvent(SharedMemFileLock); + // Create env. + SetEnvironmentVariableW(L"SteamAppPath", ExeRunDir); + WCHAR CommandLine[8192]; _snwprintf(CommandLine, _countof(CommandLine), L"\"%ls\" %ls", ExeFile, ExeCommandLine); if (!ExeFile[0] || !CreateProcessW(ExeFile, CommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo))