2022-07-08 23:42:28 +02:00
|
|
|
#include "core/stdafx.h"
|
2023-05-10 00:05:38 +02:00
|
|
|
#include "vengineserver_impl.h"
|
|
|
|
#include "persistence.h"
|
2022-07-08 23:42:28 +02:00
|
|
|
|
|
|
|
#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1)
|
|
|
|
bool Persistence_SetXP(int a1, int* a2)
|
|
|
|
{
|
2023-03-01 00:09:38 +01:00
|
|
|
g_pEngineServer->PersistenceAvailable(nullptr, a1);
|
2022-07-08 23:42:28 +02:00
|
|
|
return v_Persistence_SetXP(a1, a2);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2023-11-26 13:21:20 +01:00
|
|
|
void VPersistence::Detour(const bool bAttach) const
|
2022-07-08 23:42:28 +02:00
|
|
|
{
|
|
|
|
#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1)
|
2023-11-26 13:21:20 +01:00
|
|
|
Setup(&v_Persistence_SetXP, &Persistence_SetXP, bAttach);
|
2022-07-08 23:42:28 +02:00
|
|
|
#endif
|
|
|
|
}
|