mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
@@ -698,6 +698,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
|
||||
bpy::class_<PluginSetting>("PluginSetting", bpy::init<const QString&, const QString&, const QVariant&>());
|
||||
|
||||
|
||||
bpy::class_<IOrganizerWrapper, boost::noncopyable>("IOrganizer")
|
||||
.def("createNexusBridge", bpy::pure_virtual(&IOrganizer::createNexusBridge), bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("profileName", bpy::pure_virtual(&IOrganizer::profileName))
|
||||
@@ -863,6 +864,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
.def("getNexusModOrganizerID", bpy::pure_virtual(&MOBase::IPluginGame::getNexusModOrganizerID))
|
||||
.def("getNexusGameID", bpy::pure_virtual(&MOBase::IPluginGame::getNexusGameID))
|
||||
.def("looksValid", bpy::pure_virtual(&MOBase::IPluginGame::looksValid))
|
||||
.def("getGameVersion", bpy::pure_virtual(&MOBase::IPluginGame::getGameVersion))
|
||||
|
||||
//Plugin interface.
|
||||
.def("init", bpy::pure_virtual(&MOBase::IPluginGame::init))
|
||||
|
||||
@@ -325,6 +325,7 @@ struct IPluginGameWrapper: MOBase::IPluginGame, boost::python::wrapper<MOBase::I
|
||||
virtual int getNexusModOrganizerID() const override { return this->get_override("getNexusModOrganizerID")(); }
|
||||
virtual int getNexusGameID() const override { return this->get_override("getNexusGameID")(); }
|
||||
virtual bool looksValid(QDir const &dir) const override { return this->get_override("looksValid")(dir); }
|
||||
virtual QString getGameVersion() const override { return this->get_override("getGameVersion")(); }
|
||||
|
||||
//Plugin interface. Could this bit be implemented just once?
|
||||
virtual bool init(MOBase::IOrganizer *moInfo) override { return this->get_override("init")(moInfo); }
|
||||
|
||||
Reference in New Issue
Block a user