aboutsummaryrefslogtreecommitdiff
path: root/launcher/net
diff options
context:
space:
mode:
authordada513 <dada513@protonmail.com>2022-05-20 19:56:27 +0200
committerdada513 <dada513@protonmail.com>2022-05-20 19:56:27 +0200
commit2847cefff701dad137cd04f628c76a9282d04a83 (patch)
tree67f020383e4fd079d57e2ad0d0fb3cce46393d84 /launcher/net
parent1e6df7eec0b2d8f93dd7e0c81ba53eaafba0ec4d (diff)
downloadPrismLauncher-2847cefff701dad137cd04f628c76a9282d04a83.tar.gz
PrismLauncher-2847cefff701dad137cd04f628c76a9282d04a83.tar.bz2
PrismLauncher-2847cefff701dad137cd04f628c76a9282d04a83.zip
Add cursefrog key override
Diffstat (limited to 'launcher/net')
-rw-r--r--launcher/net/Download.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/net/Download.cpp b/launcher/net/Download.cpp
index 65cc8f67..7a401609 100644
--- a/launcher/net/Download.cpp
+++ b/launcher/net/Download.cpp
@@ -25,6 +25,7 @@
#include "MetaCacheSink.h"
#include "BuildConfig.h"
+#include "Application.h"
namespace Net {
@@ -96,7 +97,7 @@ void Download::startImpl()
request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT);
if (request.url().host().contains("api.curseforge.com")) {
- request.setRawHeader("x-api-key", BuildConfig.CURSEFORGE_API_KEY.toUtf8());
+ request.setRawHeader("x-api-key", APPLICATION->getCurseKey().toUtf8());
};
QNetworkReply* rep = m_network->get(request);