Skip to content

Commit

Permalink
Fix error when non-ASCII characters in resource pack path
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Jul 2, 2023
1 parent 4642448 commit df5c68a
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 df5c68a

Please sign in to comment.