Frees the dll if its in memory
| 607 | } |
| 608 | // Frees the dll if its in memory |
| 609 | void FreeGameDLL() { |
| 610 | if (!GameDLLHandle.handle) |
| 611 | return; |
| 612 | if (DLLGameClose) |
| 613 | DLLGameClose(); |
| 614 | Osiris_UnloadMissionModule(); |
| 615 | CloseGameModule(&GameDLLHandle); |
| 616 | DLLGameCall = NULL; |
| 617 | DLLGameInit = NULL; |
| 618 | DLLGameClose = NULL; |
| 619 | DLLGetGameInfo = NULL; |
| 620 | } |
| 621 | // Loads the game dll. Returns 1 on success, else 0 on failure |
| 622 | int LoadGameDLL(const char *name, int num_teams_to_use) { |
| 623 | static int first = 1; |
no test coverage detected