--------------------------------------- GetCommandLineA --------------------------------------------
| 125 | |
| 126 | //--------------------------------------- GetCommandLineA -------------------------------------------- |
| 127 | LPSTR 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 ------------------------------------------------- |
| 142 | HANDLE WINAPI _CreateEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPCSTR lpName) |
nothing calls this directly
no test coverage detected