Re-add base64 decode option for Qt versions that support it
This commit is contained in:
parent
e56f0db11b
commit
a0bafa4952
1 changed files with 6 additions and 2 deletions
|
@ -307,7 +307,11 @@ bool parseMinecraftProfileMojang(QByteArray & data, MinecraftProfile &output) {
|
||||||
|
|
||||||
auto value = pObj.value("value");
|
auto value = pObj.value("value");
|
||||||
if (value.isString()) {
|
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());
|
texturePayload = QByteArray::fromBase64(value.toString().toUtf8());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!texturePayload.isEmpty()) {
|
if (!texturePayload.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue