From 232e02713790e23eac842799fd680a14b5d05911 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 18 Jan 2007 20:30:45 +0000 Subject: [PATCH] Quick commit of ShareSys API change --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40317 --- core/interfaces/IShareSys.h | 4 ++-- core/systems/ShareSys.cpp | 2 +- core/systems/ShareSys.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/interfaces/IShareSys.h b/core/interfaces/IShareSys.h index 9569eb5c0..ec4bd9973 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 54789628d..d1c1ac92e 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 2aa86f82a..be249e5c1 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);