Re-add base64 decode option for Qt versions that support it

This commit is contained in:
TheCodex6824 2022-04-23 11:11:55 -04:00
parent e56f0db11b
commit a0bafa4952
No known key found for this signature in database
GPG Key ID: E9EBC39837469118

View File

@ -307,7 +307,11 @@ bool parseMinecraftProfileMojang(QByteArray & data, MinecraftProfile &output) {
auto value = pObj.value("value");
if (value.isString()) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
texturePayload = QByteArray::fromBase64(value.toString().toUtf8(), QByteArray::AbortOnBase64DecodingErrors);
#else
texturePayload = QByteArray::fromBase64(value.toString().toUtf8());
#endif
}
if (!texturePayload.isEmpty()) {