summaryrefslogtreecommitdiff
path: root/src/maingui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-24 22:58:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-24 23:37:03 +0300
commit3480f3ad939e2ae5d0191ed739a57e834658c32e (patch)
tree268acbda26a8a4e4849362f681e95ed8b4a6de16 /src/maingui.cpp
parentc3699037bc32dd43ae1b5501261808eb3425697c (diff)
downloadmv-3480f3ad939e2ae5d0191ed739a57e834658c32e.tar.gz
mv-3480f3ad939e2ae5d0191ed739a57e834658c32e.tar.bz2
mv-3480f3ad939e2ae5d0191ed739a57e834658c32e.tar.xz
mv-3480f3ad939e2ae5d0191ed739a57e834658c32e.zip
Switch in replaceSColor into using custom despatcher.
Diffstat (limited to 'src/maingui.cpp')
-rw-r--r--src/maingui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/maingui.cpp b/src/maingui.cpp
index 2513a9211..4561fd427 100644
--- a/src/maingui.cpp
+++ b/src/maingui.cpp
@@ -49,6 +49,8 @@
#endif // SDL_VERSIONNUM
#ifdef UNITTESTS
+#include "utils/cpu.h"
+#include "resources/dye/dyepalette.h"
#ifdef UNITTESTS_CATCH
#define CATCH_CONFIG_RUNNER
#include "test/catch.hpp"
@@ -146,6 +148,8 @@ int mainGui(int argc, char *argv[])
int main(int argc, char *argv[])
{
VirtFs::init(argv[0]);
+ Cpu::detect();
+ DyePalette::initFunctions();
#ifdef UNITTESTS_CATCH
return Catch::Session().run(argc, argv);
#elif defined(UNITTESTS_DOCTEST)