1.1 --- a/core/interfaces/IModuleSys.h Wed Dec 13 11:19:46 2006 +0000
1.2 +++ b/core/interfaces/IModuleSys.h Fri Dec 15 13:38:04 2006 +0000
1.3 @@ -8,16 +8,12 @@
1.4 {
1.5 class IModuleInterface;
1.6
1.7 - class IModule : public IUnloadableParent
1.8 + class IModule
1.9 {
1.10 public:
1.11 - virtual UnloadableParentType GetParentType()
1.12 - {
1.13 - return ParentType_Module;
1.14 - }
1.15 - public:
1.16 virtual IModuleInterface *GetModuleInfo() =0;
1.17 virtual const char *GetFilename() =0;
1.18 + virtual IdentityToken_t GetIdentityToken() =0;
1.19 };
1.20
1.21 class IModuleInterface
1.22 @@ -27,13 +23,19 @@
1.23 * @brief Called when the module is loaded.
1.24 *
1.25 * @param me Pointer back to module.
1.26 + * @param token Identity token handle.
1.27 * @param sys Pointer to interface sharing system of SourceMod.
1.28 * @param error Error buffer to print back to, if any.
1.29 * @param err_max Maximum size of error buffer.
1.30 * @param late If this module was loaded "late" (i.e. manually).
1.31 * @return True if load should continue, false otherwise.
1.32 */
1.33 - virtual bool OnModuleLoad(IModule *me, IShareSys *sys, char *error, size_t err_max, bool late) =0;
1.34 + virtual bool OnModuleLoad(IModule *me,
1.35 + IdentityToken_t token,
1.36 + IShareSys *sys,
1.37 + char *error,
1.38 + size_t err_max,
1.39 + bool late) =0;
1.40
1.41 /**
1.42 * @brief Called when the module is unloaded.
1.43 @@ -51,7 +53,6 @@
1.44 * @param pause True if pausing, false if unpausing.
1.45 */
1.46 virtual void OnPauseChange(bool pause) =0;
1.47 -
1.48 public:
1.49 virtual const char *GetModuleName() =0;
1.50 virtual const char *GetModuleVersion() =0;