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

Function Osiris_UnloadMissionModule

Descent3/OsirisLoadandBind.cpp:1414–1426  ·  view source on GitHub ↗

Osiris_UnloadMissionModule Purpose: Instead of saving the handle returned from Osiris_LoadMissionModule() and calling Osiris_UnloadModule() with that handle, you can just call this, instead of the call to Osiris_UnloadModule().

Source from the content-addressed store, hash-verified

1412// Osiris_UnloadModule() with that handle, you can just call this, instead of the call
1413// to Osiris_UnloadModule().
1414void Osiris_UnloadMissionModule(void) {
1415 if ((Game_mode & GM_MULTI) && (Netgame.local_role != LR_SERVER)) {
1416 // no scripts for a client!
1417 return;
1418 }
1419
1420 if (!tOSIRISCurrentMission.mission_loaded)
1421 return;
1422
1423 int dll_id = tOSIRISCurrentMission.dll_id;
1424
1425 Osiris_FreeModule(dll_id);
1426}
1427
1428// Osiris_BindScriptsToObject
1429// Purpose:

Callers 1

FreeGameDLLFunction · 0.85

Calls 1

Osiris_FreeModuleFunction · 0.85

Tested by

no test coverage detected