Frees the dll if its in memory
| 571 | } |
| 572 | // Frees the dll if its in memory |
| 573 | void 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 |
| 588 | int LoadMultiDLL(const char *name) { |
| 589 | static int first = 1; |
no test coverage detected