mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Blueprint support (#136)
--------- Co-authored-by: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>
This commit is contained in:
co-authored by
Jonathan Feenstra
parent
4409375fd8
commit
5cdf0f6f19
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user