Merge pull request #98843 from kilian-diener/zip-path-utf8

[3.x] Fix error when non-ASCII characters in resource pack path
This commit is contained in:
lawnjelly
2024-11-05 14:43:32 +00:00
committed by GitHub

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;