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

Function FreeMultiDLL

Descent3/multi_dll_mgr.cpp:573–586  ·  view source on GitHub ↗

Frees the dll if its in memory

Source from the content-addressed store, hash-verified

571}
572// Frees the dll if its in memory
573void FreeMultiDLL() {
574 if (!MultiDLLHandle.handle)
575 return;
576 if (DLLMultiClose)
577 DLLMultiClose();
578 mod_FreeModule(&MultiDLLHandle);
579 // Try deleting the file now!
580 if (!ddio_DeleteFile(Multi_conn_dll_name)) {
581 mprintf(0, "Couldn't delete the tmp dll");
582 }
583 DLLMultiCall = NULL;
584 DLLMultiInit = NULL;
585 DLLMultiClose = NULL;
586}
587// Loads the Multi dll. Returns 1 on success, else 0 on failure
588int LoadMultiDLL(const char *name) {
589 static int first = 1;

Callers 3

MainMultiplayerMenuFunction · 0.85
LoadMultiDLLFunction · 0.85
MainLoopFunction · 0.85

Calls 2

mod_FreeModuleFunction · 0.85
ddio_DeleteFileFunction · 0.50

Tested by

no test coverage detected