From 02bf9996ac32c6ce39f5b74965b526711a85c490 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 3 Aug 2010 15:07:58 -0400 Subject: Allow module init to be prioritized to allow dependency checking --- src/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index cdce0db41..a476e283f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -189,13 +189,13 @@ void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz) void ModuleManager::DetachAll(Module* mod) { - for (size_t n = I_BEGIN + 1; n != I_END; ++n) + for (size_t n = I_ModuleInit; n != I_END; ++n) Detach((Implementation)n, mod); } bool ModuleManager::SetPriority(Module* mod, Priority s) { - for (size_t n = I_BEGIN + 1; n != I_END; ++n) + for (size_t n = I_ModuleInit; n != I_END; ++n) SetPriority(mod, (Implementation)n, s); return true; -- cgit v1.3.1-10-gc9f91