Skip to content

Commit

Permalink
Merge pull request #78935 from timothyqiu/zip-pack
Browse files Browse the repository at this point in the history
Fix error when non-ASCII characters in resource pack path
  • Loading branch information
akien-mga committed Jul 7, 2023
2 parents e940778 + df5c68a commit 5ee36d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io/file_access_zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ee36d1

Please sign in to comment.