Add new function wrapper for archive conflicts (#17)

This commit is contained in:
Al
2018-09-09 23:28:53 +02:00
committed by GitHub
parent d1f6766e16
commit 6ce4138b31
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -50,7 +50,7 @@ void DataArchivesWrapper::addArchive(MOBase::IProfile *profile, int index, const
return basicWrapperFunctionImplementation<DataArchivesWrapper, void>(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<DataArchivesWrapper, void>(this, "removeArchive", boost::python::ptr(profile), archiveName);
}
@@ -68,6 +68,12 @@ void GamePluginsWrapper::readPluginLists(MOBase::IPluginList * pluginList)
{
return basicWrapperFunctionImplementation<GamePluginsWrapper, void>(this, "readPluginLists", boost::python::ptr(pluginList));
}
void GamePluginsWrapper::getLoadOrder(QStringList &loadOrder)
{
return basicWrapperFunctionImplementation<GamePluginsWrapper, void>(this, "getLoadOrder", loadOrder);
}
/// end GamePlugins Wrapper
/////////////////////////////
/// LocalSavegames Wrapper
@@ -253,6 +259,7 @@ void registerGameFeaturesPythonConverters()
bpy::class_<GamePluginsWrapper, boost::noncopyable>("GamePlugins")
.def("writePluginLists", bpy::pure_virtual(&GamePlugins::writePluginLists))
.def("readPluginLists", bpy::pure_virtual(&GamePlugins::readPluginLists))
.def("getLoadOrder", bpy::pure_virtual(&GamePlugins::getLoadOrder))
;
bpy::class_<LocalSavegamesWrapper, boost::noncopyable>("LocalSavegames")
+1
View File
@@ -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<LocalSavegames>