diff --git a/src/runner/gamefeatureswrappers.cpp b/src/runner/gamefeatureswrappers.cpp index 931651a..69e16d2 100644 --- a/src/runner/gamefeatureswrappers.cpp +++ b/src/runner/gamefeatureswrappers.cpp @@ -23,13 +23,18 @@ bool BSAInvalidationWrapper::isInvalidationBSA(const QString &bsaName) void BSAInvalidationWrapper::deactivate(MOBase::IProfile *profile) { - basicWrapperFunctionImplementation(this, "deactivate", boost::python::ptr(profile)); + return basicWrapperFunctionImplementation(this, "deactivate", boost::python::ptr(profile)); } void BSAInvalidationWrapper::activate(MOBase::IProfile *profile) { return basicWrapperFunctionImplementation(this, "activate", boost::python::ptr(profile)); } + +void BSAInvalidationWrapper::prepareProfile(MOBase::IProfile *profile) +{ + return basicWrapperFunctionImplementation(this, "prepareProfile", boost::python::ptr(profile)); +} /// end BSAInvalidation Wrapper ///////////////////////////// /// DataArchives Wrapper diff --git a/src/runner/gamefeatureswrappers.h b/src/runner/gamefeatureswrappers.h index 223ba25..75f4e1b 100644 --- a/src/runner/gamefeatureswrappers.h +++ b/src/runner/gamefeatureswrappers.h @@ -24,6 +24,7 @@ public: virtual bool isInvalidationBSA(const QString &bsaName) override; virtual void deactivate(MOBase::IProfile *profile) override; virtual void activate(MOBase::IProfile *profile) override; + virtual void prepareProfile(MOBase::IProfile *profile) override; }; class DataArchivesWrapper : public DataArchives, public boost::python::wrapper diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index ce379e0..76d31cb 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -995,6 +995,7 @@ BOOST_PYTHON_MODULE(mobase) .def("absolutePath", bpy::pure_virtual(&IProfile::absolutePath)) .def("localSavesEnabled", bpy::pure_virtual(&IProfile::localSavesEnabled)) .def("localSettingsEnabled", bpy::pure_virtual(&IProfile::localSettingsEnabled)) + .def("invalidationActive", bpy::pure_virtual(&IProfile::invalidationActive)) ; bpy::class_("ModRepositoryBridge") diff --git a/src/runner/uibasewrappers.h b/src/runner/uibasewrappers.h index 85c6de3..ad6db79 100644 --- a/src/runner/uibasewrappers.h +++ b/src/runner/uibasewrappers.h @@ -371,6 +371,7 @@ struct IProfileWrapper: MOBase::IProfile, boost::python::wrapperget_override("absolutePath")(); } virtual bool localSavesEnabled() const override { return this->get_override("localSavesEnabled")(); } virtual bool localSettingsEnabled() const override { return this->get_override("localSettingsEnabled")(); } + virtual bool invalidationActive(bool *supported) const override { return this->get_override("invalidationActive")(supported); } }; struct IDownloadManagerWrapper: MOBase::IDownloadManager, boost::python::wrapper