summaryrefslogtreecommitdiff
path: root/src/resources/dye
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-08 20:39:23 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-08 20:39:23 +0300
commitdb2c855bf9d54fe512fa695ee6bf6c314331fe7c (patch)
tree7610af0d516f9a52f1333dc0e3c9ad3db9b66e2a /src/resources/dye
parentff6ee78dda76f0cf778db1546c113bb83a0ed08e (diff)
downloadplus-db2c855bf9d54fe512fa695ee6bf6c314331fe7c.tar.gz
plus-db2c855bf9d54fe512fa695ee6bf6c314331fe7c.tar.bz2
plus-db2c855bf9d54fe512fa695ee6bf6c314331fe7c.tar.xz
plus-db2c855bf9d54fe512fa695ee6bf6c314331fe7c.zip
Add configuration path initialisation in tests where it need.
Diffstat (limited to 'src/resources/dye')
-rw-r--r--src/resources/dye/dyepalette_unittest.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette_unittest.cc b/src/resources/dye/dyepalette_unittest.cc
index ba25ea4ab..f475e7dab 100644
--- a/src/resources/dye/dyepalette_unittest.cc
+++ b/src/resources/dye/dyepalette_unittest.cc
@@ -22,6 +22,8 @@
#include "client.h"
#include "configuration.h"
+#include "configmanager.h"
+#include "dirs.h"
#include "graphicsmanager.h"
#include "being/actorsprite.h"
@@ -77,6 +79,13 @@ TEST_CASE("DyePalette tests")
theme = new Theme;
Theme::selectSkin();
+
+ Dirs::initRootDir();
+ Dirs::initHomeDir();
+
+ ConfigManager::initConfiguration();
+ getConfigDefaults2(config.getDefaultValues());
+
ActorSprite::load();
gui = new Gui();
gui->postInit(mainGraphics);