diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2025-08-18 07:55:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 07:55:52 +0200 |
| commit | d52fcccb831b63dc1add068084369543d0a45246 (patch) | |
| tree | 3d3009a7e0ad3b477b64b349a1bdc7fd1e0d5f62 /src/nexusinterface.cpp | |
| parent | 6c64236e2e7a8e2883b7656657e0fac329d5621b (diff) | |
Add author and uploader columns to mod list (#2269)
Diffstat (limited to 'src/nexusinterface.cpp')
| -rw-r--r-- | src/nexusinterface.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp index ecd33cb6..fa4dd729 100644 --- a/src/nexusinterface.cpp +++ b/src/nexusinterface.cpp @@ -131,6 +131,9 @@ void NexusBridge::nxmFilesAvailable(QString gameName, int modID, QVariant userDa temp.categoryID = fileInfo["category_id"].toInt(); temp.fileID = fileInfo["file_id"].toInt(); temp.fileSize = fileInfo["size"].toInt(); + temp.author = fileInfo["author"].toString(); + temp.uploader = fileInfo["uploaded_by"].toString(); + temp.uploaderUrl = fileInfo["uploaded_users_profile_url"].toString(); fileInfoList.append(&temp); } @@ -575,13 +578,16 @@ void NexusInterface::fakeFiles() QVariantList result; QVariantMap fileMap; - fileMap["uri"] = "fakeURI"; - fileMap["name"] = "fakeName"; - fileMap["description"] = "fakeDescription"; - fileMap["version"] = "1.0.0"; - fileMap["category_id"] = "1"; - fileMap["id"] = "1"; - fileMap["size"] = "512"; + fileMap["uri"] = "fakeURI"; + fileMap["name"] = "fakeName"; + fileMap["description"] = "fakeDescription"; + fileMap["version"] = "1.0.0"; + fileMap["category_id"] = "1"; + fileMap["id"] = "1"; + fileMap["size"] = "512"; + fileMap["author"] = "fakeAuthor"; + fileMap["uploaded_by"] = "fakeUploader"; + fileMap["uploaded_users_profile_url"] = "https://fakeuploader.com"; result.append(fileMap); emit nxmFilesAvailable("fakeGame", 1234, "fake", result, id++); |
