diff --git a/rehlds/common/IGameServerData.h b/rehlds/common/IGameServerData.h index 2be739b..fe7b035 100644 --- a/rehlds/common/IGameServerData.h +++ b/rehlds/common/IGameServerData.h @@ -11,3 +11,5 @@ public: virtual int ReadDataResponse(void *data, int len) = 0; }; + +#define GAMESERVERDATA_INTERFACE_VERSION "GameServerData001" diff --git a/rehlds/engine/sv_remoteaccess.cpp b/rehlds/engine/sv_remoteaccess.cpp index 2ed98c4..43eec60 100644 --- a/rehlds/engine/sv_remoteaccess.cpp +++ b/rehlds/engine/sv_remoteaccess.cpp @@ -304,3 +304,10 @@ void NotifyDedicatedServerUI(const char *message) { g_ServerRemoteAccess.SendMessageToAdminUI(message); } + + +#ifndef HOOK_ENGINE + +EXPOSE_SINGLE_INTERFACE_GLOBALVAR(CServerRemoteAccess, IGameServerData, GAMESERVERDATA_INTERFACE_VERSION, g_ServerRemoteAccess) + +#endif //HOOK_ENGINE \ No newline at end of file