From 5cdf0f6f1909512cfacc3f5abe09c90a3fc3fe84 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Thu, 3 Oct 2024 02:45:05 -0500 Subject: [PATCH] Blueprint support (#136) --------- Co-authored-by: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> --- src/mobase/wrappers/basic_classes.cpp | 1 + src/mobase/wrappers/game_features.cpp | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/mobase/wrappers/basic_classes.cpp b/src/mobase/wrappers/basic_classes.cpp index 59ef31d..e796a48 100644 --- a/src/mobase/wrappers/basic_classes.cpp +++ b/src/mobase/wrappers/basic_classes.cpp @@ -320,6 +320,7 @@ namespace mo2::python { .def("hasMasterExtension", &IPluginList::hasMasterExtension, "name"_a) .def("isMediumFlagged", &IPluginList::isMediumFlagged, "name"_a) .def("isLightFlagged", &IPluginList::isLightFlagged, "name"_a) + .def("isBlueprintFlagged", &IPluginList::isBlueprintFlagged, "name"_a) .def("hasLightExtension", &IPluginList::hasLightExtension, "name"_a) .def("hasNoRecords", &IPluginList::hasNoRecords, "name"_a) diff --git a/src/mobase/wrappers/game_features.cpp b/src/mobase/wrappers/game_features.cpp index fce2bd2..805b093 100644 --- a/src/mobase/wrappers/game_features.cpp +++ b/src/mobase/wrappers/game_features.cpp @@ -89,11 +89,15 @@ namespace mo2::python { } bool lightPluginsAreSupported() override { - PYBIND11_OVERRIDE_PURE(bool, GamePlugins, lightPluginsAreSupported, ); + PYBIND11_OVERRIDE(bool, GamePlugins, lightPluginsAreSupported, ); } bool mediumPluginsAreSupported() override { - PYBIND11_OVERRIDE_PURE(bool, GamePlugins, mediumPluginsAreSupported, ); + PYBIND11_OVERRIDE(bool, GamePlugins, mediumPluginsAreSupported, ); + } + bool blueprintPluginsAreSupported() override + { + PYBIND11_OVERRIDE(bool, GamePlugins, blueprintPluginsAreSupported, ); } }; @@ -259,7 +263,9 @@ namespace mo2::python { .def("readPluginLists", &GamePlugins::readPluginLists, "plugin_list"_a) .def("getLoadOrder", &GamePlugins::getLoadOrder) .def("lightPluginsAreSupported", &GamePlugins::lightPluginsAreSupported) - .def("mediumPluginsAreSupported", &GamePlugins::mediumPluginsAreSupported); + .def("mediumPluginsAreSupported", &GamePlugins::mediumPluginsAreSupported) + .def("blueprintPluginsAreSupported", + &GamePlugins::blueprintPluginsAreSupported); // LocalSavegames