--- 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;