corrently parse utf8 from zip_io open, closes #1708
this probably failed when exporting or opening android apk files too, should fix that too.
This commit is contained in:
parent
b4b80625d1
commit
1c541a2bee
1 changed files with 5 additions and 2 deletions
|
@ -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 a new issue