| 313 | game_list gl; |
| 314 | |
| 315 | game_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 | |
| 327 | void RequestGameList() { |
| 328 | // Zero out all games |
no outgoing calls
no test coverage detected