summaryrefslogtreecommitdiff
path: root/src/unittests/resources/resourcemanager/resourcemanager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/resources/resourcemanager/resourcemanager.cc')
-rw-r--r--src/unittests/resources/resourcemanager/resourcemanager.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/unittests/resources/resourcemanager/resourcemanager.cc b/src/unittests/resources/resourcemanager/resourcemanager.cc
index 90bc873ab..cd67b10d8 100644
--- a/src/unittests/resources/resourcemanager/resourcemanager.cc
+++ b/src/unittests/resources/resourcemanager/resourcemanager.cc
@@ -30,6 +30,8 @@
#include "fs/virtfs/fs.h"
#include "gui/gui.h"
+#include "gui/userpalette.h"
+#include "gui/theme.h"
#include "resources/sdlimagehelper.h"
@@ -118,11 +120,15 @@ TEST_CASE("resourcemanager", "resourcemanager")
graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE);
#endif // USE_SDL2
- ActorSprite::load();
+ userPalette = new UserPalette;
+ theme = new Theme;
+ Theme::selectSkin();
Dirs::initRootDir();
Dirs::initHomeDir();
+ ActorSprite::load();
+
// ConfigManager::initConfiguration();
// getConfigDefaults2(config.getDefaultValues());
@@ -684,6 +690,8 @@ TEST_CASE("resourcemanager", "resourcemanager")
REQUIRE(ResourceManager::getDeletedResources().empty() == true);
}
+ delete2(userPalette);
+ delete2(theme);
delete2(client);
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");