//===========================================================================// // // Purpose: Low-level tier0 interface. // //===========================================================================// #include "core/logdef.h" #include "common/sdkdefs.h" #include "tier0/module.h" // Module handles; user is responsible for initializing these. CModule g_GameDll; CModule g_SDKDll; CModule g_RadVideoToolsDll; CModule g_RadAudioDecoderDll; CModule g_RadAudioSystemDll; string g_LogSessionUUID; string g_LogSessionDirectory; static const char* s_AdrFmt = "| {:s}: {:42s}: {:#18x} |\n"; void LogFunAdr(const char* szFun, uintptr_t nAdr) // Logging function addresses. { spdlog::debug(s_AdrFmt, "FUN", szFun, nAdr); } void LogVarAdr(const char* szVar, uintptr_t nAdr) // Logging variable addresses. { spdlog::debug(s_AdrFmt, "VAR", szVar, nAdr); } void LogConAdr(const char* szCon, uintptr_t nAdr) // Logging constant addresses. { spdlog::debug(s_AdrFmt, "CON", szCon, nAdr); }