Merge pull request #78935 from timothyqiu/zip-pack

Fix error when non-ASCII characters in resource pack path
This commit is contained in:
Rémi Verschelde 2023-07-07 08:30:56 +02:00
commit 5ee36d119f
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -47,7 +47,7 @@ static void *godot_open(voidpf opaque, const char *p_fname, int mode) {
return nullptr;
}
Ref<FileAccess> f = FileAccess::open(p_fname, FileAccess::READ);
Ref<FileAccess> f = FileAccess::open(String::utf8(p_fname), FileAccess::READ);
ERR_FAIL_COND_V(f.is_null(), nullptr);
ZipData *zd = memnew(ZipData);