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

Function spiUnlockGameList

bwapi/SNP_DirectIP/SNP/SNPModule.cpp:260–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 //------------------------------------------------------------------------------------------------------------------------------------
259 DWORD gdwLastTickCount;
260 BOOL __stdcall spiUnlockGameList(game *pGameList, DWORD *a2)
261 {
262 // when storm is done reading from the gamelist
263// DropMessage(0, "spiUnlockGameList");
264
265 // release critical section
266 delete critSecExLock;
267 critSecExLock = NULL;
268
269 try
270 {
271 pluggedNetwork->requestAds();
272 }
273 catch(GeneralException &e)
274 {
275 DropLastError(__FUNCTION__ " unhandled exception: %s", e.getMessage());
276 return FALSE;
277 }
278
279 /*
280 // Unlocks the game list and makes requests to update the list internally
281 if ( pGameList != gpMGameList )
282 {
283 SetLastError(ERROR_INVALID_PARAMETER);
284 return false;
285 }
286
287 LeaveCriticalSection(&gCrit);
288 if ( a2 )
289 *a2 = 300;
290
291 DWORD dwThisTickCount = GetTickCount();
292 if ( dwThisTickCount - gdwLastTickCount > 200 )
293 {
294 gdwLastTickCount = dwThisTickCount;
295 BroadcastGameListRequest();
296 }
297 */
298 return TRUE;
299 }
300 //------------------------------------------------------------------------------------------------------------------------------------
301 BOOL __stdcall spiStartAdvertisingLadderGame(char *pszGameName, char *pszGamePassword, char *pszGameStatString, DWORD dwGameState, DWORD dwElapsedTime, DWORD dwGameType, int a7, int a8, void *pExtraBytes, DWORD dwExtraBytesCount)
302 {

Callers

nothing calls this directly

Calls 3

DropLastErrorFunction · 0.85
getMessageMethod · 0.80
requestAdsMethod · 0.45

Tested by

no test coverage detected