| 140 | } |
| 141 | |
| 142 | void 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 | |
| 155 | DWORD WINAPI PersistentPatch(LPVOID) |
| 156 | { |
no test coverage detected