diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index a7ab2af..e09ed94 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -324,7 +324,6 @@ BOOST_PYTHON_MODULE(mobase) }, bpy::arg("handle")) .def("refresh", &IOrganizer::refresh, (bpy::arg("save_changes") = true)) .def("managedGame", &IOrganizer::managedGame, bpy::return_value_policy()) - .def("modsSortedByProfilePriority", &IOrganizer::modsSortedByProfilePriority) .def("onAboutToRun", &IOrganizer::onAboutToRun, bpy::arg("callback")) .def("onFinishedRun", &IOrganizer::onFinishedRun, bpy::arg("callback")) @@ -333,6 +332,11 @@ BOOST_PYTHON_MODULE(mobase) .def("onPluginSettingChanged", &IOrganizer::onPluginSettingChanged, bpy::arg("callback")) // DEPRECATED: + .def("modsSortedByProfilePriority", +[](IOrganizer* o) { + utils::show_deprecation_warning("modsSortedByProfilePriority", + "IOrganizer::modsSortedByProfilePriority() is deprecated, use IModList::allModsByProfilePriority() instead."); + return o->modList()->allModsByProfilePriority(); + }) .def("refreshModList", +[](IOrganizer* o, bool s) { utils::show_deprecation_warning("refreshModList", "IOrganizer::refreshModList(bool) is deprecated, use IOrganizer::refresh(bool) instead."); @@ -719,6 +723,8 @@ BOOST_PYTHON_MODULE(mobase) bpy::class_("IModList", bpy::no_init) .def("displayName", &MOBase::IModList::displayName, bpy::arg("name")) .def("allMods", &MOBase::IModList::allMods) + .def("allModsByProfilePriority", &MOBase::IModList::allModsByProfilePriority, bpy::arg("profile") = nullptr) + .def("state", &MOBase::IModList::state, bpy::arg("name")) .def("setActive", static_cast(&MOBase::IModList::setActive), (bpy::arg("names"), "active"))