diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index bcf7ddc..241e0f7 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -679,7 +679,7 @@ BOOST_PYTHON_MODULE(mobase) .value("manualRequested", MOBase::IPluginInstaller::RESULT_MANUALREQUESTED) .value("notAttempted", MOBase::IPluginInstaller::RESULT_NOTATTEMPTED) ; - +/* bpy::enum_("GameType") .value("oblivion", MOBase::IGameInfo::TYPE_OBLIVION) .value("fallout3", MOBase::IGameInfo::TYPE_FALLOUT3) @@ -687,7 +687,7 @@ BOOST_PYTHON_MODULE(mobase) .value("falloutnv", MOBase::IGameInfo::TYPE_FALLOUTNV) .value("skyrim", MOBase::IGameInfo::TYPE_SKYRIM) ; - +*/ bpy::class_("VersionInfo") .def(bpy::init()) .def(bpy::init()) @@ -699,6 +699,7 @@ BOOST_PYTHON_MODULE(mobase) bpy::class_("PluginSetting", bpy::init()); + /* bpy::class_("GameInfo") .def("type", bpy::pure_virtual(&IGameInfo::type)) .def("path", bpy::pure_virtual(&IGameInfo::path)) @@ -706,9 +707,9 @@ BOOST_PYTHON_MODULE(mobase) .def("version", bpy::pure_virtual(&IGameInfo::version)) .def("extenderVersion", bpy::pure_virtual(&IGameInfo::extenderVersion)) ; - + */ bpy::class_("IOrganizer") - .def("gameInfo", bpy::pure_virtual(&IOrganizer::gameInfo), bpy::return_value_policy()) + // .def("gameInfo", bpy::pure_virtual(&IOrganizer::gameInfo), bpy::return_value_policy()) .def("createNexusBridge", bpy::pure_virtual(&IOrganizer::createNexusBridge), bpy::return_value_policy()) .def("profileName", bpy::pure_virtual(&IOrganizer::profileName)) .def("profilePath", bpy::pure_virtual(&IOrganizer::profilePath)) @@ -758,7 +759,7 @@ BOOST_PYTHON_MODULE(mobase) bpy::class_("IDownloadManager") .def("startDownloadURLs", bpy::pure_virtual(&IDownloadManager::startDownloadURLs)) - .def("startDownloadNexusFile", bpy::pure_virtual(&IDownloadManager::startDownloadNexusFile)) + //.def("startDownloadNexusFile", bpy::pure_virtual(&IDownloadManager::startDownloadNexusFile)) .def("downloadPath", bpy::pure_virtual(&IDownloadManager::downloadPath)) ; diff --git a/src/runner/uibasewrappers.h b/src/runner/uibasewrappers.h index a386d37..cf7c631 100644 --- a/src/runner/uibasewrappers.h +++ b/src/runner/uibasewrappers.h @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -198,10 +197,12 @@ private: struct IOrganizerWrapper: MOBase::IOrganizer, boost::python::wrapper { - virtual MOBase::IGameInfo &gameInfo() const { + /* + * virtual MOBase::IGameInfo &gameInfo() const { MOBase::IGameInfo *result = this->get_override("gameInfo")(); return *result; } + */ virtual MOBase::IModRepositoryBridge *createNexusBridge() const { return this->get_override("createNexusBridge")(); } virtual QString profileName() const { return this->get_override("profileName")(); } virtual QString profilePath() const { return this->get_override("profilePath")(); } @@ -257,6 +258,7 @@ struct IInstallationManagerWrapper: MOBase::IInstallationManager, boost::python: virtual MOBase::IPluginInstaller::EInstallResult installArchive(MOBase::GuessedValue &modName, const QString &archiveFile) { return this->get_override("installArchive")(modName, archiveFile); } }; +/* struct IGameInfoWrapper: MOBase::IGameInfo, boost::python::wrapper { virtual Type type() const { return this->get_override("type")(); } @@ -265,7 +267,7 @@ struct IGameInfoWrapper: MOBase::IGameInfo, boost::python::wrapperget_override("version")(); } virtual QString extenderVersion() const { return this->get_override("extenderVersion")(); } }; - +*/ struct IModInterfaceWrapper: MOBase::IModInterface, boost::python::wrapper { virtual QString name() const override { return this->get_override("name")(); }