diff options
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 28b3065d7..93e399819 100644 --- a/include/modules.h +++ b/include/modules.h @@ -136,6 +136,8 @@ struct ModuleLang_ { */ CoreExport class Module { + private: + bool permanent; public: /** The module name (e.g. os_modload) */ @@ -177,6 +179,20 @@ CoreExport class Module */ void SetType(MODType type); + /** Toggles the permanent flag on a module. If a module is permanent, + * then it may not be unloaded. + * + * Naturally, this setting should be used sparingly! + * + * @param state True if this module should be permanent, false else. + */ + void SetPermanent(bool state); + + /** Retrieves whether or not a given module is permanent. + * @return true if the module is permanent, false else. + */ + bool GetPermanent(); + /** Set the modules version info. * @param version the version of the module */ |