From 6ce4138b31f218c3b3036ec151408d56d5fd3eb5 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 9 Sep 2018 23:28:53 +0200 Subject: [PATCH] Add new function wrapper for archive conflicts (#17) --- src/runner/gamefeatureswrappers.cpp | 9 ++++++++- src/runner/gamefeatureswrappers.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/runner/gamefeatureswrappers.cpp b/src/runner/gamefeatureswrappers.cpp index 179a191..931651a 100644 --- a/src/runner/gamefeatureswrappers.cpp +++ b/src/runner/gamefeatureswrappers.cpp @@ -50,7 +50,7 @@ void DataArchivesWrapper::addArchive(MOBase::IProfile *profile, int index, const return basicWrapperFunctionImplementation(this, "addArchive", boost::python::ptr(profile), index, archiveName); } -void DataArchivesWrapper::removeArchive(MOBase::IProfile * profile, const QString & archiveName) +void DataArchivesWrapper::removeArchive(MOBase::IProfile *profile, const QString &archiveName) { return basicWrapperFunctionImplementation(this, "removeArchive", boost::python::ptr(profile), archiveName); } @@ -68,6 +68,12 @@ void GamePluginsWrapper::readPluginLists(MOBase::IPluginList * pluginList) { return basicWrapperFunctionImplementation(this, "readPluginLists", boost::python::ptr(pluginList)); } + +void GamePluginsWrapper::getLoadOrder(QStringList &loadOrder) +{ + return basicWrapperFunctionImplementation(this, "getLoadOrder", loadOrder); +} + /// end GamePlugins Wrapper ///////////////////////////// /// LocalSavegames Wrapper @@ -253,6 +259,7 @@ void registerGameFeaturesPythonConverters() bpy::class_("GamePlugins") .def("writePluginLists", bpy::pure_virtual(&GamePlugins::writePluginLists)) .def("readPluginLists", bpy::pure_virtual(&GamePlugins::readPluginLists)) + .def("getLoadOrder", bpy::pure_virtual(&GamePlugins::getLoadOrder)) ; bpy::class_("LocalSavegames") diff --git a/src/runner/gamefeatureswrappers.h b/src/runner/gamefeatureswrappers.h index c32cecc..223ba25 100644 --- a/src/runner/gamefeatureswrappers.h +++ b/src/runner/gamefeatureswrappers.h @@ -46,6 +46,7 @@ public: virtual void writePluginLists(const MOBase::IPluginList *pluginList) override; virtual void readPluginLists(MOBase::IPluginList *pluginList) override; + virtual void getLoadOrder(QStringList &loadOrder) override; }; class LocalSavegamesWrapper : public LocalSavegames, public boost::python::wrapper