Fix error when non-ASCII characters in resource pack path

This commit is contained in:
Haoyu Qiu 2023-07-02 15:04:00 +08:00
parent 46424488ed
commit df5c68af99
1 changed files with 1 additions and 1 deletions

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);