You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix error when non-ASCII characters in resource pack path
(cherry picked from commit df5c68af99)
This commit is contained in:
@@ -47,7 +47,7 @@ static void *godot_open(voidpf opaque, const char *p_fname, int mode) {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<FileAccess> f = FileAccess::open(p_fname, FileAccess::READ);
|
Ref<FileAccess> f = FileAccess::open(String::utf8(p_fname), FileAccess::READ);
|
||||||
ERR_FAIL_COND_V(f.is_null(), nullptr);
|
ERR_FAIL_COND_V(f.is_null(), nullptr);
|
||||||
|
|
||||||
ZipData *zd = memnew(ZipData);
|
ZipData *zd = memnew(ZipData);
|
||||||
|
|||||||
Reference in New Issue
Block a user