Fix decoding UTF-8 filenames on unzipping.

(cherry picked from commit d2573c1636)
This commit is contained in:
bruvzg 2022-01-05 14:27:11 +02:00 committed by Rémi Verschelde
parent 8d3e16676d
commit d2558bdc8c
No known key found for this signature in database
GPG key ID: C3336907360768E1
8 changed files with 16 additions and 16 deletions

View file

@ -124,7 +124,7 @@ void EditorAssetInstaller::open(const String &p_path, int p_depth) {
char fname[16384];
unzGetCurrentFileInfo(pkg, &info, fname, 16384, nullptr, 0, nullptr, 0);
String name = fname;
String name = String::utf8(fname);
files_sorted.insert(name);
ret = unzGoToNextFile(pkg);
@ -304,7 +304,7 @@ void EditorAssetInstaller::ok_pressed() {
char fname[16384];
ret = unzGetCurrentFileInfo(pkg, &info, fname, 16384, nullptr, 0, nullptr, 0);
String name = fname;
String name = String::utf8(fname);
if (status_map.has(name) && status_map[name]->is_checked(0)) {
String path = status_map[name]->get_metadata(0);