diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 52fe857..ba7bf01 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -861,6 +861,8 @@ BOOST_PYTHON_MODULE(mobase) .def("getLoadOrderMechanism", bpy::pure_virtual(&MOBase::IPluginGame::getLoadOrderMechanism)) .def("getNexusModOrganizerID", bpy::pure_virtual(&MOBase::IPluginGame::getNexusModOrganizerID)) .def("getNexusGameID", bpy::pure_virtual(&MOBase::IPluginGame::getNexusGameID)) + .def("getNexusManagementURL", bpy::pure_virtual(&MOBase::IPluginGame::getNexusManagementURL)) + .def("getNexusDisplayURL", bpy::pure_virtual(&MOBase::IPluginGame::getNexusDisplayURL)) //Plugin interface. .def("init", bpy::pure_virtual(&MOBase::IPluginGame::init)) diff --git a/src/runner/uibasewrappers.h b/src/runner/uibasewrappers.h index a4aca85..742806e 100644 --- a/src/runner/uibasewrappers.h +++ b/src/runner/uibasewrappers.h @@ -227,7 +227,7 @@ struct IOrganizerWrapper: MOBase::IOrganizer, boost::python::wrapper &func) { return this->get_override("onAboutToRun")(func); } virtual bool onFinishedRun(const std::function &func) { return this->get_override("onFinishedRun")(func); } virtual bool onModInstalled(const std::function &func) { return this->get_override("onModInstalled")(func); } - virtual MOBase::IPluginGame *managedGame() const { return this->get_override("managedGame")(); } + virtual MOBase::IPluginGame const *managedGame() const { return this->get_override("managedGame")(); } }; struct IDownloadManagerWrapper: MOBase::IDownloadManager, boost::python::wrapper @@ -331,6 +331,8 @@ struct IPluginGameWrapper: MOBase::IPluginGame, boost::python::wrapperget_override("version")(); } virtual bool isActive() const override { return this->get_override("isActive")(); } virtual QList settings() const override { return this->get_override("settings")(); } + virtual QString getNexusManagementURL() const override { return this->get_override("getNexusManagementURL")(); } + virtual QString getNexusDisplayURL() const override { return this->get_override("getNexusDisplayURL")(); } protected: