mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Implement 'override' plugin support
This commit is contained in:
@@ -89,6 +89,10 @@ namespace mo2::python {
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(bool, GamePlugins, lightPluginsAreSupported, );
|
||||
}
|
||||
bool overridePluginsAreSupported() override
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(bool, GamePlugins, overridePluginsAreSupported, );
|
||||
}
|
||||
};
|
||||
|
||||
class PyLocalSavegames : public LocalSavegames {
|
||||
@@ -244,7 +248,8 @@ namespace mo2::python {
|
||||
.def("writePluginLists", &GamePlugins::writePluginLists, "plugin_list"_a)
|
||||
.def("readPluginLists", &GamePlugins::readPluginLists, "plugin_list"_a)
|
||||
.def("getLoadOrder", &GamePlugins::getLoadOrder)
|
||||
.def("lightPluginsAreSupported", &GamePlugins::lightPluginsAreSupported);
|
||||
.def("lightPluginsAreSupported", &GamePlugins::lightPluginsAreSupported)
|
||||
.def("overridePluginsAreSupported", &GamePlugins::overridePluginsAreSupported);
|
||||
|
||||
// LocalSavegames
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ namespace mo2::python {
|
||||
.def("gameIcon", &IPluginGame::gameIcon)
|
||||
.def("gameDirectory", &IPluginGame::gameDirectory)
|
||||
.def("dataDirectory", &IPluginGame::dataDirectory)
|
||||
.def("secondaryDataDirectories", &IPluginGame::secondaryDataDirectories)
|
||||
.def("setGamePath", &IPluginGame::setGamePath, "path"_a)
|
||||
.def("documentsDirectory", &IPluginGame::documentsDirectory)
|
||||
.def("savesDirectory", &IPluginGame::savesDirectory)
|
||||
|
||||
Reference in New Issue
Block a user