diff options
author | dada513 <dada513@protonmail.com> | 2022-05-20 19:56:27 +0200 |
---|---|---|
committer | dada513 <dada513@protonmail.com> | 2022-05-20 19:56:27 +0200 |
commit | 2847cefff701dad137cd04f628c76a9282d04a83 (patch) | |
tree | 67f020383e4fd079d57e2ad0d0fb3cce46393d84 /launcher/net | |
parent | 1e6df7eec0b2d8f93dd7e0c81ba53eaafba0ec4d (diff) | |
download | PrismLauncher-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.cpp | 3 |
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); |