Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-23 12:34:07 +0000
committerStijn Buys <ingar@osirion.org>2008-11-23 12:34:07 +0000
commit583ec3285c41e9d253c4aaabd2af4dadac75f3a7 (patch)
tree5ec345e44af9d3699a95f493d8358ee766e23330 /src/game/game.cc
parent44158ccfbe943b832c0e0bf9ce547212aa6c2b8b (diff)
clean module consturction/destruction
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/game.cc b/src/game/game.cc
index a125eb7..719611c 100644
--- a/src/game/game.cc
+++ b/src/game/game.cc
@@ -5,7 +5,7 @@
*/
-#include "core/core.h"
+#include "core/loader.h"
#include "game/game.h"
#include "game/base/game.h"
#include "game/example/example.h"
@@ -18,11 +18,11 @@ void register_modules(bool register_noninteractive_modules)
con_print << "^BRegistering game modules..." << std::endl;
// non-interactive modules
- core::Module::add(new game::Game());
- core::Module::add(new example::Example());
+ core::Loader::add("base", game::factory);
+ core::Loader::add("example", example::factory);
// interactive modules
if (register_noninteractive_modules) {
- core::Module::add(new intro::Intro());
+ core::Loader::add("intro", intro::factory);
}
}