qmlfrontend/engine_instance.h
changeset 15919 d52f5d8e75e6
parent 15238 b32c52c76977
child 15921 5b3beb90e1a6
--- a/qmlfrontend/engine_instance.h	Sat Nov 12 15:40:20 2022 +0100
+++ b/qmlfrontend/engine_instance.h	Sat Nov 12 21:12:14 2022 +0100
@@ -12,7 +12,7 @@
   Q_OBJECT
 
  public:
-  explicit EngineInstance(const QString& libraryPath,
+  explicit EngineInstance(const QString& libraryPath,const QString& dataPath,
                           QObject* parent = nullptr);
   ~EngineInstance();
 
@@ -38,7 +38,7 @@
                        qint32 y);
 
  private:
-  Engine::EngineInstance* m_instance;
+  std::unique_ptr<Engine::EngineInstance, Engine::cleanup_t*> m_instance;
 
   Engine::hedgewars_engine_protocol_version_t*
       hedgewars_engine_protocol_version;