diff --git a/rehlds/public/rehlds/rehlds_api.h b/rehlds/public/rehlds/rehlds_api.h index 9cc3a45..7fb3781 100644 --- a/rehlds/public/rehlds/rehlds_api.h +++ b/rehlds/public/rehlds/rehlds_api.h @@ -35,7 +35,7 @@ #include "model.h" #define REHLDS_API_VERSION_MAJOR 1 -#define REHLDS_API_VERSION_MINOR 0 +#define REHLDS_API_VERSION_MINOR 1 //Steam_NotifyClientConnect hook typedef IHookChain IRehldsHook_Steam_NotifyClientConnect; @@ -164,6 +164,7 @@ struct RehldsFuncs_t { int(*GetBuildNumber)(); double(*GetRealTime)(); int*(*GetMsgBadRead)(); + cmd_source_t*(*GetCmdSource)(); }; class IRehldsApi { diff --git a/rehlds/rehlds/rehlds_api_impl.cpp b/rehlds/rehlds/rehlds_api_impl.cpp index 04864a4..86b60ce 100644 --- a/rehlds/rehlds/rehlds_api_impl.cpp +++ b/rehlds/rehlds/rehlds_api_impl.cpp @@ -51,6 +51,10 @@ int* GetMsgBadRead_api() { return &msg_badread; } +cmd_source_t* GetCmdSource_api() { + return &cmd_source; +} + CRehldsServerStatic g_RehldsServerStatic; CRehldsServerData g_RehldsServerData; CRehldsHookchains g_RehldsHookchains; @@ -75,7 +79,8 @@ RehldsFuncs_t g_RehldsApiFuncs = &GSBSecure_api, &GetBuildNumber_api, &GetRealTime_api, - &GetMsgBadRead_api + &GetMsgBadRead_api, + &GetCmdSource_api }; sizebuf_t* GetNetMessage_api()