Engine: expose Host_Error

Should be callable by other code.
This commit is contained in:
Kawe Mazidjatari 2024-11-24 12:12:38 +01:00
parent ec77faeb97
commit c09e6d6948
2 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,7 @@ void _Host_RunFrame(void* unused, float time)
return v_Host_RunFrame(unused, time);
}
void _Host_Error(const char* error, ...)
void Host_Error(const char* const error, ...)
{
char buf[1024];
{/////////////////////////////
@ -102,6 +102,6 @@ void VHost::Detour(const bool bAttach) const
DetourSetup(&v_Host_CountRealTimePackets, &Host_CountRealTimePackets, bAttach);
#ifndef DEDICATED // Dedicated already logs this!
DetourSetup(&v_Host_Error, &_Host_Error, bAttach);
DetourSetup(&v_Host_Error, &Host_Error, bAttach);
#endif // !DEDICATED
}

View File

@ -15,6 +15,8 @@ inline bool* host_initialized = nullptr;
inline float* host_frametime_unbounded = nullptr;
inline float* host_frametime_stddeviation = nullptr;
void Host_Error(const char* const error, ...);
class CCommonHostState
{
public: