Fix error when non-ASCII characters in resource pack path

Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
This commit is contained in:
kilian-diener 2024-11-05 12:05:45 +01:00 committed by Relintai
parent 54f6334f40
commit 63f96fa90e

View File

@ -44,7 +44,7 @@ static void *pandemonium_open(void *data, const char *p_fname, int mode) {
return nullptr; 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); ERR_FAIL_COND_V(!f, nullptr);
return f; return f;