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

Function CheckVersion

bwapi/BWAPI/Source/DLLMain.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void CheckVersion()
143{
144 WORD w1, w2, w3, w4;
145 GetCurrentProductVersion(w1, w2, w3, w4);
146 if ( w1 != SC_VER_1 ||
147 w2 != SC_VER_2 ||
148 w3 != SC_VER_3 )
149 {
150 isCorrectVersion = false;
151 MessageBoxA(NULL, "The version of Starcraft that you are using is not compatible with BWAPI. BWAPI is intended to run on Starcraft version " STARCRAFT_VER ". However, BWAPI will attempt to continue to run in a reduced functionality mode.", NULL, MB_ICONERROR | MB_OK);
152 }
153}
154
155DWORD WINAPI PersistentPatch(LPVOID)
156{

Callers 1

DllMainFunction · 0.85

Calls 1

GetCurrentProductVersionFunction · 0.85

Tested by

no test coverage detected