Common: make IsEULAUpToDate globally accessible

Will be used for crash reporting as well.
This commit is contained in:
Kawe Mazidjatari 2024-10-06 11:50:31 +02:00
parent 7440e2d5da
commit 6de498e7ba
2 changed files with 9 additions and 9 deletions

View File

@ -135,6 +135,15 @@ extern ConVar* rui_defaultDebugFontFace;
extern ConVar* miles_language; extern ConVar* miles_language;
#endif #endif
//-----------------------------------------------------------------------------
// Purpose: checks if the accepted EULA is up to date.
// Output : true on success, false on failure.
//-----------------------------------------------------------------------------
inline bool IsEULAUpToDate()
{
return (eula_version_accepted->GetInt() == eula_version->GetInt());
}
void ConVar_InitShipped(void); void ConVar_InitShipped(void);
void ConVar_PurgeShipped(void); void ConVar_PurgeShipped(void);
void ConVar_PurgeHostNames(void); void ConVar_PurgeHostNames(void);

View File

@ -351,15 +351,6 @@ bool CPylon::AuthForConnection(const uint64_t nucleusId, const char* ipAddress,
return false; return false;
} }
//-----------------------------------------------------------------------------
// Purpose: checks if the accepted EULA is up to date.
// Output : true on success, false on failure.
//-----------------------------------------------------------------------------
static bool IsEULAUpToDate()
{
return (eula_version_accepted->GetInt() == eula_version->GetInt());
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: Gets the EULA from master server. // Purpose: Gets the EULA from master server.
// Input : &outData - // Input : &outData -