From d24619c012b34d5a3d4cfb93e7bea3ff3d5721e7 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 4 Aug 2013 14:36:14 +0200 Subject: Automatically attach modules to events --- src/modmanager_static.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modmanager_static.cpp') 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) -- cgit v1.3.1-10-gc9f91