|
10 | 10 | #include <uibase/game_features/igamefeatures.h> |
11 | 11 | #include <uibase/guessedvalue.h> |
12 | 12 | #include <uibase/idownloadmanager.h> |
| 13 | +#include <uibase/iexecutable.h> |
| 14 | +#include <uibase/iexecutableslist.h> |
13 | 15 | #include <uibase/iinstallationmanager.h> |
14 | 16 | #include <uibase/imodinterface.h> |
15 | 17 | #include <uibase/imodrepositorybridge.h> |
@@ -198,6 +200,23 @@ namespace mo2::python { |
198 | 200 | .def("forced", &ExecutableForcedLoadSetting::forced) |
199 | 201 | .def("library", &ExecutableForcedLoadSetting::library) |
200 | 202 | .def("process", &ExecutableForcedLoadSetting::process); |
| 203 | + |
| 204 | + py::class_<IExecutable, std::shared_ptr<IExecutable>>(m, "IExecutable") |
| 205 | + .def("title", &IExecutable::title) |
| 206 | + .def("binaryInfo", &IExecutable::binaryInfo) |
| 207 | + .def("arguments", &IExecutable::arguments) |
| 208 | + .def("steamAppID", &IExecutable::steamAppID) |
| 209 | + .def("workingDirectory", &IExecutable::workingDirectory) |
| 210 | + .def("isShownOnToolbar", &IExecutable::isShownOnToolbar) |
| 211 | + .def("usesOwnIcon", &IExecutable::usesOwnIcon) |
| 212 | + .def("minimizeToSystemTray", &IExecutable::minimizeToSystemTray) |
| 213 | + .def("hide", &IExecutable::hide); |
| 214 | + |
| 215 | + py::class_<IExecutablesList>(m, "IExecutablesList") |
| 216 | + .def("executables", &IExecutablesList::executables) |
| 217 | + .def("getByTitle", &IExecutablesList::getByTitle, "title"_a) |
| 218 | + .def("getByBinary", &IExecutablesList::getByBinary, "info"_a) |
| 219 | + .def("titleExists", &IExecutablesList::titleExists, "title"_a); |
201 | 220 | } |
202 | 221 |
|
203 | 222 | void add_modinterface_classes(py::module_ m) |
@@ -625,6 +644,8 @@ namespace mo2::python { |
625 | 644 | .def("pluginList", &IOrganizer::pluginList, |
626 | 645 | py::return_value_policy::reference) |
627 | 646 | .def("modList", &IOrganizer::modList, py::return_value_policy::reference) |
| 647 | + .def("executablesList", &IOrganizer::executablesList, |
| 648 | + py::return_value_policy::reference) |
628 | 649 | .def("gameFeatures", &IOrganizer::gameFeatures, |
629 | 650 | py::return_value_policy::reference) |
630 | 651 | .def("profile", &IOrganizer::profile) |
|
0 commit comments