From 2df983e22cd8ab223227d2fb5dda07edb0522ee9 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Tue, 17 Apr 2018 22:20:50 +0100 Subject: [PATCH] Create ExecutableInfo interface --- src/runner/pythonrunner.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 5cd2501..c4ec847 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -746,6 +746,20 @@ BOOST_PYTHON_MODULE(mobase) bpy::class_("PluginSetting", bpy::init()); + bpy::class_("ExecutableInfo", bpy::init()) + .def("withArgument", &ExecutableInfo::withArgument, bpy::return_value_policy()) + .def("withWorkingDirectory", &ExecutableInfo::withWorkingDirectory, bpy::return_value_policy()) + .def("withSteamAppId", &ExecutableInfo::withSteamAppId, bpy::return_value_policy()) + .def("asCustom", &ExecutableInfo::asCustom, bpy::return_value_policy()) + .def("isValid", &ExecutableInfo::isValid) + .def("title", &ExecutableInfo::title) + .def("binary", &ExecutableInfo::binary) + .def("arguments", &ExecutableInfo::arguments) + .def("workingDirectory", &ExecutableInfo::workingDirectory) + .def("steamAppID", &ExecutableInfo::steamAppID) + .def("isCustom", &ExecutableInfo::isCustom) + ; + bpy::class_("IOrganizer") .def("createNexusBridge", bpy::pure_virtual(&IOrganizer::createNexusBridge), bpy::return_value_policy())