|
@@ -404,7 +404,7 @@ bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_
|
|
|
char fname[16384];
|
|
|
ret = unzGetCurrentFileInfo(pkg, &info, fname, 16384, nullptr, 0, nullptr, 0);
|
|
|
|
|
|
- String file = fname;
|
|
|
+ String file = String::utf8(fname);
|
|
|
if (file.ends_with("version.txt")) {
|
|
|
Vector<uint8_t> data;
|
|
|
data.resize(info.uncompressed_size);
|
|
@@ -465,7 +465,7 @@ bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_
|
|
|
char fname[16384];
|
|
|
unzGetCurrentFileInfo(pkg, &info, fname, 16384, nullptr, 0, nullptr, 0);
|
|
|
|
|
|
- String file_path(String(fname).simplify_path());
|
|
|
+ String file_path(String::utf8(fname).simplify_path());
|
|
|
|
|
|
String file = file_path.get_file();
|
|
|
|
|
@@ -711,7 +711,7 @@ Error ExportTemplateManager::install_android_template_from_file(const String &p_
|
|
|
char fpath[16384];
|
|
|
ret = unzGetCurrentFileInfo(pkg, &info, fpath, 16384, nullptr, 0, nullptr, 0);
|
|
|
|
|
|
- String path = fpath;
|
|
|
+ String path = String::utf8(fpath);
|
|
|
String base_dir = path.get_base_dir();
|
|
|
|
|
|
if (!path.ends_with("/")) {
|