diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-11-23 22:51:42 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-11-23 22:51:42 +0000 |
commit | eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d (patch) | |
tree | 41015edc17e3c308d04e11c062a31f6bde028ea0 /src/main.cpp | |
parent | 08de4c7bab768be5a583150bfabd5d6d54a29c7a (diff) | |
download | mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.gz mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.bz2 mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.xz mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.zip |
Refectored the Itemmanager class to an ItemDB namespace.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0e0fad2f..5379086c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -72,6 +72,7 @@ #include "net/network.h" #include "resources/image.h" +#include "resources/itemdb.h" #include "resources/resourcemanager.h" #include "resources/spriteset.h" @@ -303,6 +304,9 @@ void init_engine(const Options &options) errorMessage = err; logger->log("Warning: %s", err); } + + // Initialize item database + ItemDB::load(); } /** Clear the engine */ @@ -327,6 +331,8 @@ void exit_engine() ResourceManager::deleteInstance(); delete logger; + + ItemDB::unload(); } void printHelp() |