MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / unload

Method unload

ogsr_engine/COMMON_AI/script_engine.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void CScriptEngine::unload()
44{
45 extern void destroy_lua_wpn_params();
46 destroy_lua_wpn_params();
47 if (MainMenu())
48 {
49 MainMenu()->DestroyInternal(true);
50 }
51
52 xr_delete(g_object_factory);
53
54 close(); // вызовем тут явно
55
56 no_files.clear();
57}
58
59#define DEF_LUA_ERROR_TEMPLATE(L) \
60 print_output(L, "[" __FUNCTION__ "]", LUA_ERRRUN); \

Callers

nothing calls this directly

Calls 5

destroy_lua_wpn_paramsFunction · 0.85
MainMenuFunction · 0.85
xr_deleteFunction · 0.85
DestroyInternalMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected