diff --git a/core/interfaces/IShareSys.h b/core/interfaces/IShareSys.h index 9569eb5c..ec4bd997 100644 --- a/core/interfaces/IShareSys.h +++ b/core/interfaces/IShareSys.h @@ -78,9 +78,9 @@ namespace SourceMod * @brief Adds a list of natives to the global native pool. * * @param token Identity token of parent object. - * @param natives Array of natives to add, NULL terminated. + * @param natives Array of natives to add. The last entry must have NULL members. */ - virtual void AddNatives(IdentityToken_t *token, const sp_nativeinfo_t *natives[]) =0; + virtual void AddNatives(IExtension *myself, const sp_nativeinfo_t *natives) =0; /** * @brief Creates a new identity type. diff --git a/core/systems/ShareSys.cpp b/core/systems/ShareSys.cpp index 54789628..d1c1ac92 100644 --- a/core/systems/ShareSys.cpp +++ b/core/systems/ShareSys.cpp @@ -159,7 +159,7 @@ bool ShareSystem::RequestInterface(const char *iface_name, return true; } -void ShareSystem::AddNatives(IdentityToken_t *token, const sp_nativeinfo_t *natives[]) +void ShareSystem::AddNatives(IExtension *myself, const sp_nativeinfo_t *natives) { /* :TODO: implement */ } diff --git a/core/systems/ShareSys.h b/core/systems/ShareSys.h index 2aa86f82..be249e5c 100644 --- a/core/systems/ShareSys.h +++ b/core/systems/ShareSys.h @@ -36,7 +36,7 @@ public: //IShareSys unsigned int iface_vers, IExtension *mysql, SMInterface **pIface); - void AddNatives(IdentityToken_t *token, const sp_nativeinfo_t *natives[]); + void AddNatives(IExtension *myself, const sp_nativeinfo_t *natives); IdentityType_t CreateIdentType(const char *name); IdentityType_t FindIdentType(const char *name); IdentityToken_t *CreateIdentity(IdentityType_t type);