r5sdk/r5dev/ebisusdk/EbisuSDK.cpp
Kawe Mazidjatari 2010e11310 Add 'fatal' functionality to Error()
When fatal is set, the function will show a error dialogue, which will halt the process and close when the message is dismissed. Else we will end up in a crash.
2022-08-22 12:42:41 +02:00

44 lines
1.1 KiB
C++

#include "core/stdafx.h"
#include "ebisusdk/EbisuSDK.h"
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
bool IsOriginInitialized()
{
#ifndef DEDICATED
if ((!(*g_OriginErrorLevel)
&& (*g_bEbisuSDKInitialized)
&& (*g_NucleusID)
&& (*g_bEbisuSDKCvarInitialized)))
// && (*g_OriginAuthCode)
// && (g_OriginNucleusToken[0])))
#endif // DEDICATED
{
return true;
}
return false;
}
//-----------------------------------------------------------------------------
// Purpose: sets the EbisuSDK globals for dedicated to satisfy command callbacks
//-----------------------------------------------------------------------------
void HEbisuSDK_Init()
{
#ifdef DEDICATED
*(char*)g_bEbisuSDKInitialized = (char)0x1; // <- 1st EbisuSDK
*(char*)g_bEbisuSDKCvarInitialized = (char)0x1; // <- 2nd EbisuSDK
*(char*)g_NucleusID = (char)0x1; // <- 3rd EbisuSDK
#endif // DEDICATED
}
void EbisuSDK_Attach()
{
//
}
void EbisuSDK_Detach()
{
//
}