mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
34 lines
941 B
C++
34 lines
941 B
C++
#include "core/stdafx.h"
|
|
#include "ebisusdk/EbisuSDK.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
bool IsOriginInitialized()
|
|
{
|
|
#ifndef DEDICATED
|
|
if ((!(*g_OriginErrorLevel)
|
|
&& (*g_EbisuSDKInit)
|
|
&& (*g_NucleusID)
|
|
&& (*g_EbisuProfileInit)))
|
|
// && (*g_OriginAuthCode)
|
|
// && (g_NucleusToken[0])))
|
|
#endif // DEDICATED
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: sets the EbisuSDK globals for dedicated to satisfy command callbacks
|
|
//-----------------------------------------------------------------------------
|
|
void HEbisuSDK_Init()
|
|
{
|
|
#ifdef DEDICATED
|
|
*g_EbisuSDKInit = true; // <- 1st EbisuSDK
|
|
*g_EbisuProfileInit = true; // <- 2nd EbisuSDK
|
|
*g_NucleusID = true; // <- 3rd EbisuSDK
|
|
#endif // DEDICATED
|
|
}
|