mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Merge branch 'issue/418' of https://github.com/ThosRTanner/modorganizer-plugin_python into ThosRTanner-issue/418
Conflicts: src/runner/uibasewrappers.h
This commit is contained in:
@@ -729,6 +729,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
.def("refreshModList", bpy::pure_virtual(&IOrganizer::refreshModList))
|
||||
.def("profile", bpy::pure_virtual(&IOrganizer::profile), bpy::return_value_policy<bpy::return_by_value>())
|
||||
.def("managedGame", bpy::pure_virtual(&IOrganizer::managedGame), bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("modsSortedByProfilePriority", bpy::pure_virtual(&IOrganizer::modsSortedByProfilePriority))
|
||||
;
|
||||
|
||||
bpy::class_<IProfileWrapper, boost::noncopyable>("IProfile")
|
||||
|
||||
@@ -230,6 +230,7 @@ struct IOrganizerWrapper: MOBase::IOrganizer, boost::python::wrapper<MOBase::IOr
|
||||
virtual bool onModInstalled(const std::function<void(const QString&)> &func) override { return this->get_override("onModInstalled")(func); }
|
||||
virtual MOBase::IProfile *profile() const override { return this->get_override("profile")(); }
|
||||
virtual MOBase::IPluginGame const *managedGame() const override { return this->get_override("managedGame")(); }
|
||||
virtual QStringList modsSortedByProfilePriority() const override { return this->get_override("modsSortedByProfilePriority")(); }
|
||||
};
|
||||
|
||||
struct IProfileWrapper: MOBase::IProfile, boost::python::wrapper<MOBase::IProfile>
|
||||
|
||||
Reference in New Issue
Block a user