diff options
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/module.cpp b/src/module.cpp index 08d1a1cf0..7179d8bdf 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -31,6 +31,8 @@ Module::Module(const std::string &mname, const std::string &creator) this->type = THIRD; this->handle = NULL; + this->permanent = false; + for (int i = 0; i < NUM_LANGS; i++) { this->lang[i].argc = 0; @@ -210,6 +212,16 @@ void Module::SetType(MODType ntype) this->type = ntype; } +void Module::SetPermanent(bool state) +{ + this->permanent = state; +} + +bool Module::GetPermanent() +{ + return this->permanent; +} + void Module::SetVersion(const std::string &nversion) { this->version = nversion; |