qmlFrontend/hwengine.cpp
branchqmlfrontend
changeset 10456 6fd99bb73524
parent 10452 03519fd9f98d
child 10517 844bd43db47a
--- a/qmlFrontend/hwengine.cpp	Mon Nov 03 23:36:53 2014 +0300
+++ b/qmlFrontend/hwengine.cpp	Mon Nov 03 23:56:51 2014 +0300
@@ -13,6 +13,7 @@
     registerGUIMessagesCallback_t *flibRegisterGUIMessagesCallback;
     setSeed_t *flibSetSeed;
     getSeed_t *flibGetSeed;
+    setTheme_t *flibSetTheme;
     getPreview_t *flibGetPreview;
     runQuickGame_t *flibRunQuickGame;
     runLocalGame_t *flibRunLocalGame;
@@ -45,6 +46,7 @@
     flibRegisterGUIMessagesCallback = (registerGUIMessagesCallback_t*) hwlib.resolve("registerGUIMessagesCallback");
     flibSetSeed = (setSeed_t*) hwlib.resolve("setSeed");
     flibGetSeed = (getSeed_t*) hwlib.resolve("getSeed");
+    flibSetTheme = (setTheme_t*) hwlib.resolve("setTheme");
     flibGetPreview = (getPreview_t*) hwlib.resolve("getPreview");
     flibRunQuickGame = (runQuickGame_t*) hwlib.resolve("runQuickGame");
     flibRunLocalGame = (runLocalGame_t*) hwlib.resolve("runLocalGame");
@@ -202,3 +204,8 @@
 {
     flibChangeTeamColor(teamName.toUtf8().constData(), dir);
 }
+
+void HWEngine::setTheme(const QString &theme)
+{
+    flibSetTheme(theme.toUtf8().constData());
+}