1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Update launcher/helper.cpp

Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
This commit is contained in:
Laserlicht
2025-09-06 15:36:07 +02:00
committed by GitHub
parent 7b240b1802
commit f96996c181

View File

@@ -90,8 +90,8 @@ void performNativeCopy(QString src, QString dst)
{ {
#ifdef VCMI_ANDROID #ifdef VCMI_ANDROID
// %-encode unencoded parts of string. // %-encode unencoded parts of string.
// This is needed because QT returns a mixed content url with %-encoded and unencoded parts. If Android >= 13 this causes problems reading this files, when using spaces and unicode characters in folder or filename. // This is needed because Qt returns a mixed content url with %-encoded and unencoded parts. On Android >= 13 this causes problems reading these files, when using spaces and unicode characters in folder or filename.
// Only these should encoded (other typically %-encoded chars should not encoded because this leads to errors). // Only these should be encoded (other typically %-encoded chars should not be encoded because this leads to errors).
// Related, but seems not completly fixed (at least in our setup): https://bugreports.qt.io/browse/QTBUG-114435 // Related, but seems not completly fixed (at least in our setup): https://bugreports.qt.io/browse/QTBUG-114435
auto safeEncode = [&](QString uri) -> QString auto safeEncode = [&](QString uri) -> QString
{ {