Closes and deletes any tempfiles for the game module
| 550 | } |
| 551 | // Closes and deletes any tempfiles for the game module |
| 552 | void 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 |
| 565 | bool InitGameModule(const char *name, module *mod) { |
| 566 | char lib_name[_MAX_PATH * 2]; |
no test coverage detected