From 96a50d43da2f0f8dbbf859e7ad5fc5309a421fb0 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Tue, 31 Dec 2024 19:39:14 +0100 Subject: [PATCH] Add startDownloadNexusFile overload with game name --- src/mobase/wrappers/basic_classes.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mobase/wrappers/basic_classes.cpp b/src/mobase/wrappers/basic_classes.cpp index e796a48..246a145 100644 --- a/src/mobase/wrappers/basic_classes.cpp +++ b/src/mobase/wrappers/basic_classes.cpp @@ -672,8 +672,13 @@ namespace mo2::python { { py::class_(m, "IDownloadManager") .def("startDownloadURLs", &IDownloadManager::startDownloadURLs, "urls"_a) - .def("startDownloadNexusFile", &IDownloadManager::startDownloadNexusFile, + .def("startDownloadNexusFile", + py::overload_cast(&IDownloadManager::startDownloadNexusFile), "mod_id"_a, "file_id"_a) + .def("startDownloadNexusFile", + py::overload_cast( + &IDownloadManager::startDownloadNexusFile), + "game_name"_a, "mod_id"_a, "file_id"_a) .def("downloadPath", &IDownloadManager::downloadPath, "id"_a) .def("onDownloadComplete", &IDownloadManager::onDownloadComplete, "callback"_a)