diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-07-02 15:04:00 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-07-02 16:09:57 +0800 |
commit | df5c68af99993002c927b4cc33bc85f67900579d (patch) | |
tree | a8f70f5c7dc50ee702dcd6ed05d3bc25e2252841 /core/io/file_access_zip.cpp | |
parent | 46424488edc341b65467ee7fd3ac423e4d49ad34 (diff) | |
download | redot-engine-df5c68af99993002c927b4cc33bc85f67900579d.tar.gz |
Fix error when non-ASCII characters in resource pack path
Diffstat (limited to 'core/io/file_access_zip.cpp')
-rw-r--r-- | core/io/file_access_zip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_zip.cpp b/core/io/file_access_zip.cpp index 064353476f..c7f1a73f97 100644 --- a/core/io/file_access_zip.cpp +++ b/core/io/file_access_zip.cpp @@ -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); |