2021-12-25 22:36:38 +01:00
|
|
|
#include "core/stdafx.h"
|
|
|
|
#include "ebisusdk/EbisuSDK.h"
|
|
|
|
|
2022-08-22 03:53:38 +02:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose:
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
bool IsOriginInitialized()
|
|
|
|
{
|
|
|
|
#ifndef DEDICATED
|
2022-08-22 12:42:41 +02:00
|
|
|
if ((!(*g_OriginErrorLevel)
|
2023-02-04 00:39:34 +01:00
|
|
|
&& (*g_EbisuSDKInit)
|
2022-08-22 12:42:41 +02:00
|
|
|
&& (*g_NucleusID)
|
2023-02-04 00:39:34 +01:00
|
|
|
&& (*g_EbisuProfileInit)))
|
2022-08-22 03:53:38 +02:00
|
|
|
// && (*g_OriginAuthCode)
|
2023-01-25 02:30:54 +01:00
|
|
|
// && (g_NucleusToken[0])))
|
2022-08-22 03:53:38 +02:00
|
|
|
#endif // DEDICATED
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-12-25 22:36:38 +01:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose: sets the EbisuSDK globals for dedicated to satisfy command callbacks
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void HEbisuSDK_Init()
|
|
|
|
{
|
|
|
|
#ifdef DEDICATED
|
2022-01-05 02:07:37 +01:00
|
|
|
*(char*)g_bEbisuSDKInitialized = (char)0x1; // <- 1st EbisuSDK
|
|
|
|
*(char*)g_bEbisuSDKCvarInitialized = (char)0x1; // <- 2nd EbisuSDK
|
2022-08-18 02:15:23 +02:00
|
|
|
*(char*)g_NucleusID = (char)0x1; // <- 3rd EbisuSDK
|
2021-12-25 22:36:38 +01:00
|
|
|
#endif // DEDICATED
|
|
|
|
}
|
|
|
|
|
|
|
|
void EbisuSDK_Attach()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
void EbisuSDK_Detach()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|