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

Function CloseGameModule

Descent3/Game2DLL.cpp:552–563  ·  view source on GitHub ↗

Closes and deletes any tempfiles for the game module

Source from the content-addressed store, hash-verified

550}
551// Closes and deletes any tempfiles for the game module
552void CloseGameModule(module *mod) {
553 // Clear out error queue
554 mod_GetLastError();
555 mod_FreeModule(mod);
556 if (Multi_game_dll_name[0] != '\0') {
557 // Try deleting the file now!
558 if (!ddio_DeleteFile(Multi_game_dll_name)) {
559 mprintf(0, "Couldn't delete the tmp dll");
560 }
561 }
562 mod->handle = NULL;
563}
564// this function will load up the DLL, but not get any symbols
565bool InitGameModule(const char *name, module *mod) {
566 char lib_name[_MAX_PATH * 2];

Callers 2

FreeGameDLLFunction · 0.85
GetDLLGameInfoFunction · 0.85

Calls 3

mod_GetLastErrorFunction · 0.85
mod_FreeModuleFunction · 0.85
ddio_DeleteFileFunction · 0.50

Tested by

no test coverage detected