reorganized SourceMod for the public SDK
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40329
This commit is contained in:
@@ -564,6 +564,12 @@ void CExtensionManager::MarkAllLoaded()
|
||||
}
|
||||
}
|
||||
|
||||
void CExtensionManager::AddDependency(IExtension *pSource, const char *file, bool required, bool autoload)
|
||||
{
|
||||
/* :TODO: implement */
|
||||
return;
|
||||
}
|
||||
|
||||
void CExtensionManager::OnRootConsoleCommand(const char *cmd, unsigned int argcount)
|
||||
{
|
||||
if (argcount >= 3)
|
||||
|
||||
@@ -80,6 +80,7 @@ public:
|
||||
void AddNatives(IExtension *pOwner, const sp_nativeinfo_t *natives);
|
||||
void BindAllNativesToPlugin(IPlugin *pPlugin);
|
||||
void MarkAllLoaded();
|
||||
void AddDependency(IExtension *pSource, const char *file, bool required, bool autoload);
|
||||
private:
|
||||
CExtension *FindByOrder(unsigned int num);
|
||||
private:
|
||||
|
||||
@@ -194,3 +194,9 @@ void ShareSystem::RemoveInterfaces(IExtension *pExtension)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ShareSystem::AddDependency(IExtension *myself, const char *filename, bool require, bool autoload)
|
||||
{
|
||||
g_Extensions.AddDependency(myself, filename, require, autoload);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ public: //IShareSys
|
||||
IdentityToken_t *CreateIdentity(IdentityType_t type);
|
||||
void DestroyIdentType(IdentityType_t type);
|
||||
void DestroyIdentity(IdentityToken_t *identity);
|
||||
void AddDependency(IExtension *myself, const char *filename, bool require, bool autoload);
|
||||
public: //SMGlobalClass
|
||||
/* Pre-empt in case anything tries to register idents early */
|
||||
void OnSourceModStartup(bool late);
|
||||
|
||||
Reference in New Issue
Block a user