CvDllGameContext::DestroySingleton()
- Defined in
- CvDllContext.cpp, line 161
- Class
- CvDllGameContext
- Hook name
CivHooks::CvDllGameContext_DestroySingleton
Hooks
static bool BeforeCvDllGameContext_DestroySingleton();static void AfterCvDllGameContext_DestroySingleton();static void ReplaceCvDllGameContext_DestroySingleton(void (*original)());CivRegisterBefore<CivHooks::CvDllGameContext_DestroySingleton>(host, &BeforeCvDllGameContext_DestroySingleton);CivRegisterAfter<CivHooks::CvDllGameContext_DestroySingleton>(host, &AfterCvDllGameContext_DestroySingleton);CivRegisterReplace<CivHooks::CvDllGameContext_DestroySingleton>(host, &ReplaceCvDllGameContext_DestroySingleton);
Code
161void CvDllGameContext::DestroySingleton()162{163#if defined(CUSTOM_MODS_H)164 // Call this first, in case the logging sub-system needs the memory we are about to free165 CUSTOMLOG("%s - Shutdown", MOD_DLL_NAME);166#endif167168 SAFE_DELETE(s_pSingleton);169 HeapDestroy(s_hHeap);170 s_hHeap = INVALID_HANDLE_VALUE;171}
Calls
CvString::CvStringCvString::formatFILogFile::MsgFILogFileMgr::GetInstanceFILogFileMgr::GetLogHeapDestroySAFE_DELETEstd::basic_string::c_str