Skip to content

Commit

Permalink
Add startDownloadNexusFile overload with game name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanFeenstra committed Dec 31, 2024
1 parent 5cdf0f6 commit 96a50d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mobase/wrappers/basic_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,13 @@ namespace mo2::python {
{
py::class_<IDownloadManager>(m, "IDownloadManager")
.def("startDownloadURLs", &IDownloadManager::startDownloadURLs, "urls"_a)
.def("startDownloadNexusFile", &IDownloadManager::startDownloadNexusFile,
.def("startDownloadNexusFile",
py::overload_cast<int, int>(&IDownloadManager::startDownloadNexusFile),
"mod_id"_a, "file_id"_a)
.def("startDownloadNexusFile",
py::overload_cast<const QString&, int, int>(
&IDownloadManager::startDownloadNexusFile),
"game_name"_a, "mod_id"_a, "file_id"_a)
.def("downloadPath", &IDownloadManager::downloadPath, "id"_a)
.def("onDownloadComplete", &IDownloadManager::onDownloadComplete,
"callback"_a)
Expand Down

0 comments on commit 96a50d4

Please sign in to comment.