Everyone should call this when leaving the game.
| 272 | |
| 273 | // Everyone should call this when leaving the game. |
| 274 | void dp_EndGame() { |
| 275 | mprintf(0, "Ending DirectPlay game.\n"); |
| 276 | if ((!DP_active) || (!lpDirectPlay4A)) |
| 277 | return; |
| 278 | lpDirectPlay4A->Close(); |
| 279 | lpDirectPlay4A->Release(); |
| 280 | lpDirectPlay4A = NULL; |
| 281 | } |
| 282 | |
| 283 | // This function gets called when a game is started, so Direcplay knows the title, and to listen |
| 284 | int dp_StartGame(char *gamename) { |
no test coverage detected