mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Update for archive invalidation changes
This commit is contained in:
@@ -23,13 +23,18 @@ bool BSAInvalidationWrapper::isInvalidationBSA(const QString &bsaName)
|
||||
|
||||
void BSAInvalidationWrapper::deactivate(MOBase::IProfile *profile)
|
||||
{
|
||||
basicWrapperFunctionImplementation<BSAInvalidationWrapper, void>(this, "deactivate", boost::python::ptr(profile));
|
||||
return basicWrapperFunctionImplementation<BSAInvalidationWrapper, void>(this, "deactivate", boost::python::ptr(profile));
|
||||
}
|
||||
|
||||
void BSAInvalidationWrapper::activate(MOBase::IProfile *profile)
|
||||
{
|
||||
return basicWrapperFunctionImplementation<BSAInvalidationWrapper, void>(this, "activate", boost::python::ptr(profile));
|
||||
}
|
||||
|
||||
void BSAInvalidationWrapper::prepareProfile(MOBase::IProfile *profile)
|
||||
{
|
||||
return basicWrapperFunctionImplementation<BSAInvalidationWrapper, void>(this, "prepareProfile", boost::python::ptr(profile));
|
||||
}
|
||||
/// end BSAInvalidation Wrapper
|
||||
/////////////////////////////
|
||||
/// DataArchives Wrapper
|
||||
|
||||
@@ -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<DataArchives>
|
||||
|
||||
@@ -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_<ModRepositoryBridgeWrapper, boost::noncopyable>("ModRepositoryBridge")
|
||||
|
||||
@@ -371,6 +371,7 @@ struct IProfileWrapper: MOBase::IProfile, boost::python::wrapper<MOBase::IProfil
|
||||
virtual QString absolutePath() const override { return this->get_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<MOBase::IDownloadManager>
|
||||
|
||||
Reference in New Issue
Block a user