mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix error when non-ASCII characters in resource pack path
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
(cherry picked from commit a75460f267
)
This commit is contained in:
parent
94ed44651d
commit
a608af586c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue