YAML storage (#7071)

YAML storage
This commit is contained in:
Raphael Coeffic
2019-11-12 14:50:05 +01:00
committed by Bertrand Songis
parent bb2ca31dad
commit 8b4d2b698d
69 changed files with 5577 additions and 425 deletions
+2 -2
View File
@@ -319,7 +319,7 @@ class LuaWidgetFactory: public WidgetFactory
lua_newtable(lsWidgets);
int i = 0;
for (const ZoneOption * option = options; option->name; option++, i++) {
l_pushtableint(option->name, persistentData->options[i].signedValue);
l_pushtableint(option->name, persistentData->options[i].value.signedValue);
}
if (lua_pcall(lsWidgets, 2, 1, 0) != 0) {
@@ -349,7 +349,7 @@ void LuaWidget::update()
lua_newtable(lsWidgets);
int i = 0;
for (const ZoneOption * option = getOptions(); option->name; option++, i++) {
l_pushtableint(option->name, persistentData->options[i].signedValue);
l_pushtableint(option->name, persistentData->options[i].value.signedValue);
}
if (lua_pcall(lsWidgets, 2, 0, 0) != 0) {