mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix decoding UTF-8 filenames on unzipping.
(cherry picked from commit d2573c1636
)
This commit is contained in:
parent
8d3e16676d
commit
d2558bdc8c
8 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue