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

Function FreeGameDLL

Descent3/Game2DLL.cpp:609–620  ·  view source on GitHub ↗

Frees the dll if its in memory

Source from the content-addressed store, hash-verified

607}
608// Frees the dll if its in memory
609void 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
622int LoadGameDLL(const char *name, int num_teams_to_use) {
623 static int first = 1;

Callers 2

CloseGameScriptFunction · 0.85
LoadGameDLLFunction · 0.85

Calls 2

CloseGameModuleFunction · 0.85

Tested by

no test coverage detected