Skip to content

Commit 96a50d4

Browse files
Add startDownloadNexusFile overload with game name
1 parent 5cdf0f6 commit 96a50d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mobase/wrappers/basic_classes.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,13 @@ namespace mo2::python {
672672
{
673673
py::class_<IDownloadManager>(m, "IDownloadManager")
674674
.def("startDownloadURLs", &IDownloadManager::startDownloadURLs, "urls"_a)
675-
.def("startDownloadNexusFile", &IDownloadManager::startDownloadNexusFile,
675+
.def("startDownloadNexusFile",
676+
py::overload_cast<int, int>(&IDownloadManager::startDownloadNexusFile),
676677
"mod_id"_a, "file_id"_a)
678+
.def("startDownloadNexusFile",
679+
py::overload_cast<const QString&, int, int>(
680+
&IDownloadManager::startDownloadNexusFile),
681+
"game_name"_a, "mod_id"_a, "file_id"_a)
677682
.def("downloadPath", &IDownloadManager::downloadPath, "id"_a)
678683
.def("onDownloadComplete", &IDownloadManager::onDownloadComplete,
679684
"callback"_a)

0 commit comments

Comments
 (0)