--- 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());
+}