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
parent 373075f3f8
commit a75460f267

View file

@ -43,7 +43,7 @@ static void *godot_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;