mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 01:41:51 +00:00
Merge pull request #20186 from Yar-Mukhamedov/master
A fix for the export templates installation error...
This commit is contained in:
commit
f1970e15b9
@ -228,7 +228,10 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
|
||||
version = data_str;
|
||||
}
|
||||
|
||||
fc++;
|
||||
if (file.get_file().size() != 0) {
|
||||
fc++;
|
||||
}
|
||||
|
||||
ret = unzGoToNextFile(pkg);
|
||||
}
|
||||
|
||||
@ -268,6 +271,11 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
|
||||
|
||||
String file = String(fname).get_file();
|
||||
|
||||
if (file.size() == 0) {
|
||||
ret = unzGoToNextFile(pkg);
|
||||
continue;
|
||||
}
|
||||
|
||||
Vector<uint8_t> data;
|
||||
data.resize(info.uncompressed_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user