mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Add missing bindings for executableForcedLoads and fix ExecutableInfo.
This commit is contained in:
@@ -195,10 +195,10 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
bpy::class_<PluginSetting>("PluginSetting", bpy::init<const QString&, const QString&, const QVariant&>());
|
||||
|
||||
bpy::class_<ExecutableInfo>("ExecutableInfo", bpy::init<const QString&, const QFileInfo&>())
|
||||
.def("withArgument", &ExecutableInfo::withArgument, bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("withWorkingDirectory", &ExecutableInfo::withWorkingDirectory, bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("withSteamAppId", &ExecutableInfo::withSteamAppId, bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("asCustom", &ExecutableInfo::asCustom, bpy::return_value_policy<bpy::reference_existing_object>())
|
||||
.def("withArgument", &ExecutableInfo::withArgument, bpy::return_self<>())
|
||||
.def("withWorkingDirectory", &ExecutableInfo::withWorkingDirectory, bpy::return_self<>())
|
||||
.def("withSteamAppId", &ExecutableInfo::withSteamAppId, bpy::return_self<>())
|
||||
.def("asCustom", &ExecutableInfo::asCustom, bpy::return_self<>())
|
||||
.def("isValid", &ExecutableInfo::isValid)
|
||||
.def("title", &ExecutableInfo::title)
|
||||
.def("binary", &ExecutableInfo::binary)
|
||||
@@ -208,6 +208,15 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
.def("isCustom", &ExecutableInfo::isCustom)
|
||||
;
|
||||
|
||||
bpy::class_<ExecutableForcedLoadSetting>("ExecutableForcedLoadSetting", bpy::init<const QString&, const QString&>())
|
||||
.def("withForced", &ExecutableForcedLoadSetting::withForced, bpy::return_self<>())
|
||||
.def("withEnabled", &ExecutableForcedLoadSetting::withEnabled, bpy::return_self<>())
|
||||
.def("enabled", &ExecutableForcedLoadSetting::enabled)
|
||||
.def("forced", &ExecutableForcedLoadSetting::forced)
|
||||
.def("library", &ExecutableForcedLoadSetting::library)
|
||||
.def("process", &ExecutableForcedLoadSetting::process)
|
||||
;
|
||||
|
||||
bpy::class_<ISaveGameWrapper, bpy::bases<>, ISaveGameWrapper*, boost::noncopyable>("ISaveGame")
|
||||
.def("getFilename", bpy::pure_virtual(&ISaveGame::getFilename))
|
||||
.def("getCreationTime", bpy::pure_virtual(&ISaveGame::getCreationTime))
|
||||
@@ -685,6 +694,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
.def("documentsDirectory", bpy::pure_virtual(&MOBase::IPluginGame::documentsDirectory))
|
||||
.def("savesDirectory", bpy::pure_virtual(&MOBase::IPluginGame::savesDirectory))
|
||||
.def("executables", bpy::pure_virtual(&MOBase::IPluginGame::executables))
|
||||
.def("executableForcedLoads", bpy::pure_virtual(&MOBase::IPluginGame::executableForcedLoads))
|
||||
.def("steamAPPId", bpy::pure_virtual(&MOBase::IPluginGame::steamAPPId))
|
||||
.def("primaryPlugins", bpy::pure_virtual(&MOBase::IPluginGame::primaryPlugins))
|
||||
.def("gameVariants", bpy::pure_virtual(&MOBase::IPluginGame::gameVariants))
|
||||
|
||||
Reference in New Issue
Block a user