From 63f96fa90eb99357b36ac98c9d8b4a06e2968ac8 Mon Sep 17 00:00:00 2001 From: kilian-diener Date: Tue, 5 Nov 2024 12:05:45 +0100 Subject: [PATCH] Fix error when non-ASCII characters in resource pack path Co-authored-by: Haoyu Qiu --- 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 84a6e4932..700166e66 100644 --- a/core/io/file_access_zip.cpp +++ b/core/io/file_access_zip.cpp @@ -44,7 +44,7 @@ static void *pandemonium_open(void *data, const char *p_fname, int mode) { return nullptr; } - FileAccess *f = FileAccess::open(p_fname, FileAccess::READ); + FileAccess *f = FileAccess::open(String::utf8(p_fname), FileAccess::READ); ERR_FAIL_COND_V(!f, nullptr); return f;