Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
potentially fix citicon not picking up toolmode
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=a1e91569e08f19979189c90477b740b7d329797b
  • Loading branch information
silicon authored and blattersturm committed Apr 17, 2017
1 parent 2b1f3e5 commit 475dc3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/console/Main.cpp
Expand Up @@ -9,6 +9,9 @@

int wmain(int argc, const wchar_t** argv)
{
SetEnvironmentVariable(L"CitizenFX_ToolMode", L"1");
_putenv("CitizenFX_ToolMode=1");

// path environment appending of our primary directories
static wchar_t pathBuf[32768];
GetEnvironmentVariable(L"PATH", pathBuf, sizeof(pathBuf));
Expand All @@ -19,8 +22,6 @@ int wmain(int argc, const wchar_t** argv)

SetDllDirectory(MakeRelativeCitPath(L"bin").c_str()); // to prevent a) current directory DLL search being disabled and b) xlive.dll being taken from system if not overridden

SetEnvironmentVariable(L"CitizenFX_ToolMode", L"1");

// initializing toolmode
HMODULE coreRT = LoadLibrary(MakeRelativeCitPath(L"CoreRT.dll").c_str());

Expand Down

0 comments on commit 475dc3c

Please sign in to comment.