mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: expose Host_Error
Should be callable by other code.
This commit is contained in:
parent
ec77faeb97
commit
c09e6d6948
@ -78,7 +78,7 @@ void _Host_RunFrame(void* unused, float time)
|
|||||||
return v_Host_RunFrame(unused, time);
|
return v_Host_RunFrame(unused, time);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _Host_Error(const char* error, ...)
|
void Host_Error(const char* const error, ...)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
{/////////////////////////////
|
{/////////////////////////////
|
||||||
@ -102,6 +102,6 @@ void VHost::Detour(const bool bAttach) const
|
|||||||
DetourSetup(&v_Host_CountRealTimePackets, &Host_CountRealTimePackets, bAttach);
|
DetourSetup(&v_Host_CountRealTimePackets, &Host_CountRealTimePackets, bAttach);
|
||||||
|
|
||||||
#ifndef DEDICATED // Dedicated already logs this!
|
#ifndef DEDICATED // Dedicated already logs this!
|
||||||
DetourSetup(&v_Host_Error, &_Host_Error, bAttach);
|
DetourSetup(&v_Host_Error, &Host_Error, bAttach);
|
||||||
#endif // !DEDICATED
|
#endif // !DEDICATED
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,8 @@ inline bool* host_initialized = nullptr;
|
|||||||
inline float* host_frametime_unbounded = nullptr;
|
inline float* host_frametime_unbounded = nullptr;
|
||||||
inline float* host_frametime_stddeviation = nullptr;
|
inline float* host_frametime_stddeviation = nullptr;
|
||||||
|
|
||||||
|
void Host_Error(const char* const error, ...);
|
||||||
|
|
||||||
class CCommonHostState
|
class CCommonHostState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user