Remove old comment and change to piston-meta

Signed-off-by: timoreo <contact@timoreo.fr>
This commit is contained in:
timoreo 2022-06-30 18:13:52 +02:00
parent f95856d062
commit 3433c102b7
No known key found for this signature in database
GPG Key ID: 121A72C3512BA288

View File

@ -14,10 +14,9 @@ struct File{
};
void JavaDownloader::downloadJava(bool isLegacy, const QString& OS) {
//Query the adoptium API to get a good version
auto netJob = new NetJob(QString("JRE::QueryVersions"), APPLICATION->network());
auto response = new QByteArray();
netJob->addNetAction(Net::Download::makeByteArray(QUrl("https://launchermeta.mojang.com/v1/products/java-runtime/2ec0cc96c44e5a76b9c8b7c39df7210883d12871/all.json"), response));
netJob->addNetAction(Net::Download::makeByteArray(QUrl("https://piston-meta.mojang.com/v1/products/java-runtime/2ec0cc96c44e5a76b9c8b7c39df7210883d12871/all.json"), response));
QObject::connect(netJob, &NetJob::finished,[netJob, response]{
netJob->deleteLater();
delete response;