MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetGameList

Function GetGameList

netcon/mtclient/mtgametrack.cpp:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313game_list gl;
314
315game_list *GetGameList() {
316 memset(&gl, 0, sizeof(gl));
317 for (auto & i : GameBuffer) {
318 if (i.game_type != GT_UNUSED) {
319 memcpy(&gl, &i, sizeof(gl));
320 i.game_type = GT_UNUSED;
321 return ≷
322 }
323 }
324 return nullptr;
325}
326
327void RequestGameList() {
328 // Zero out all games

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected