mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
corrently parse utf8 from zip_io open, closes #1708
this probably failed when exporting or opening android apk files too, should fix that too.
(cherry picked from commit 1c541a2bee
)
This commit is contained in:
parent
106199dfa7
commit
75cc8dc6b4
@ -39,11 +39,14 @@ static void* zipio_open(void* data, const char* p_fname, int mode) {
|
||||
|
||||
FileAccess *&f = *(FileAccess**)data;
|
||||
|
||||
String fname;
|
||||
fname.parse_utf8(p_fname);
|
||||
|
||||
if (mode & ZLIB_FILEFUNC_MODE_WRITE) {
|
||||
f = FileAccess::open(p_fname,FileAccess::WRITE);
|
||||
f = FileAccess::open(fname,FileAccess::WRITE);
|
||||
} else {
|
||||
|
||||
f = FileAccess::open(p_fname,FileAccess::READ);
|
||||
f = FileAccess::open(fname,FileAccess::READ);
|
||||
}
|
||||
|
||||
if (!f)
|
||||
|
Loading…
Reference in New Issue
Block a user