qmlFrontend/hwengine.cpp
branchqmlfrontend
changeset 10819 57e21f7621b0
parent 10616 20a2d5e6930a
child 10888 a04e04aaf599
--- a/qmlFrontend/hwengine.cpp	Sat Feb 07 23:26:14 2015 +0300
+++ b/qmlFrontend/hwengine.cpp	Sun Feb 08 00:10:05 2015 +0300
@@ -15,6 +15,7 @@
     getSeed_t *flibGetSeed;
     setTheme_t *flibSetTheme;
     setScript_t *flibSetScript;
+    setScheme_t *flibSetScheme;
     getPreview_t *flibGetPreview;
     runQuickGame_t *flibRunQuickGame;
     runLocalGame_t *flibRunLocalGame;
@@ -57,6 +58,7 @@
     flibSetSeed = (setSeed_t*) hwlib.resolve("setSeed");
     flibSetTheme = (setTheme_t*) hwlib.resolve("setTheme");
     flibSetScript = (setScript_t*) hwlib.resolve("setScript");
+    flibSetScheme = (setScheme_t*) hwlib.resolve("setScheme");
 
     flibGetThemesList = (getThemesList_t*) hwlib.resolve("getThemesList");
     flibFreeThemesList = (freeThemesList_t*) hwlib.resolve("freeThemesList");
@@ -233,3 +235,8 @@
 {
     flibSetScript(script.toUtf8().constData());
 }
+
+void HWEngine::setScheme(const QString &scheme)
+{
+    flibSetScheme(scheme.toUtf8().constData());
+}