MCPcopy Create free account
hub / github.com/bwapi/bwapi / _GetCommandLineA

Function _GetCommandLineA

bwapi/BWAPI/Source/Detours.cpp:127–139  ·  view source on GitHub ↗

--------------------------------------- GetCommandLineA --------------------------------------------

Source from the content-addressed store, hash-verified

125
126//--------------------------------------- GetCommandLineA --------------------------------------------
127LPSTR WINAPI _GetCommandLineA()
128{
129 static std::string newCommandLine;
130 auto GetCommandLineAProc = _GetCommandLineAOld ? _GetCommandLineAOld : &GetCommandLineA;
131 newCommandLine = GetCommandLineAProc();
132
133 // Apply NOSOUND option
134 if (LoadConfigStringUCase("starcraft", "sound", "ON") == "OFF")
135 {
136 newCommandLine += " nosound";
137 }
138 return const_cast<char*>(newCommandLine.c_str());
139}
140
141//--------------------------------------------- CREATE EVENT -------------------------------------------------
142HANDLE WINAPI _CreateEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPCSTR lpName)

Callers

nothing calls this directly

Calls 2

LoadConfigStringUCaseFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected