diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-22 14:14:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-22 14:14:34 +0300 |
commit | da05d9dd98315378bdded216184294f376643191 (patch) | |
tree | ffc4b984c73c3bb68d26a1df6481634254075744 /src/dyetool/dyemain.cpp | |
parent | ec856b2026c7ceecab5f74942bb36661d7c6ae67 (diff) | |
download | manaplus-da05d9dd98315378bdded216184294f376643191.tar.gz manaplus-da05d9dd98315378bdded216184294f376643191.tar.bz2 manaplus-da05d9dd98315378bdded216184294f376643191.tar.xz manaplus-da05d9dd98315378bdded216184294f376643191.zip |
Use resource manager as global variable.
Diffstat (limited to 'src/dyetool/dyemain.cpp')
-rw-r--r-- | src/dyetool/dyemain.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index 1d5f55a6d..84334ec21 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -75,10 +75,10 @@ int main(int argc, char **argv) imageHelper = new SDLImageHelper; #endif - ResourceManager *resman = new ResourceManager; - resman->setWriteDir("."); - resman->addToSearchPath(".", false); - resman->addToSearchPath("/", false); + ResourceManager::init(); + resourceManager->setWriteDir("."); + resourceManager->addToSearchPath(".", false); + resourceManager->addToSearchPath("/", false); std::string src = argv[1]; std::string dst; if (argc == 4) @@ -91,7 +91,7 @@ int main(int argc, char **argv) dst = argv[2]; } - Image *image = resman->getImage(src); + Image *image = resourceManager->getImage(src); if (!image) { printf("Error loading image\n"); |