qmlfrontend/engine_instance.cpp
changeset 14292 1aac8a62be6f
parent 14175 8354b390f1a2
child 14311 92e5682810d4
--- a/qmlfrontend/engine_instance.cpp	Thu Nov 22 00:49:55 2018 +0300
+++ b/qmlfrontend/engine_instance.cpp	Thu Nov 22 10:58:55 2018 +0100
@@ -5,6 +5,13 @@
 
 EngineInstance::~EngineInstance() { Engine::cleanup(m_instance); }
 
+void EngineInstance::sendConfig(const GameConfig &config) {
+  for (auto b : config.config()) {
+    Engine::send_ipc(m_instance, reinterpret_cast<uint8_t *>(b.data()),
+                     static_cast<size_t>(b.size()));
+  }
+}
+
 Engine::PreviewInfo EngineInstance::generatePreview() {
   Engine::PreviewInfo pinfo;