aboutsummaryrefslogtreecommitdiff
path: root/src/modmanager_static.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-08-04 14:36:14 +0200
committerGravatar attilamolnar2013-08-04 16:08:57 +0200
commitd24619c012b34d5a3d4cfb93e7bea3ff3d5721e7 (patch)
tree620eaaed0037f2992b5f75c9ef87c0082f9c909f /src/modmanager_static.cpp
parentChange the syntax of FOREACH macros to be less dumb. (diff)
Automatically attach modules to events
Diffstat (limited to 'src/modmanager_static.cpp')
-rw-r--r--src/modmanager_static.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp
index 40123674b..321bf520d 100644
--- a/src/modmanager_static.cpp
+++ b/src/modmanager_static.cpp
@@ -102,6 +102,7 @@ bool ModuleManager::Load(const std::string& name, bool defer)
}
else
{
+ AttachAll(mod);
mod->init();
}
}
@@ -207,6 +208,7 @@ void ModuleManager::LoadAll()
Module* mod = i->second;
try
{
+ AttachAll(mod);
mod->init();
}
catch (CoreException& modexcept)