From df5c68af99993002c927b4cc33bc85f67900579d Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 2 Jul 2023 15:04:00 +0800 Subject: [PATCH] Fix error when non-ASCII characters in resource pack path --- core/io/file_access_zip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/file_access_zip.cpp b/core/io/file_access_zip.cpp index 064353476f2..c7f1a73f971 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 f = FileAccess::open(p_fname, FileAccess::READ); + Ref f = FileAccess::open(String::utf8(p_fname), FileAccess::READ); ERR_FAIL_COND_V(f.is_null(), nullptr); ZipData *zd = memnew(ZipData);