Skip to content

Commit

Permalink
Blueprint support (#136)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Jonathan Feenstra <[email protected]>
  • Loading branch information
Silarn and JonathanFeenstra authored Oct 3, 2024
1 parent 4409375 commit 5cdf0f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/mobase/wrappers/basic_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
12 changes: 9 additions & 3 deletions src/mobase/wrappers/game_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, );
}
};

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5cdf0f6

Please sign in to comment.