mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-21 16:37:20 +01:00
Fix error when non-ASCII characters in resource pack path
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
This commit is contained in:
parent
54f6334f40
commit
63f96fa90e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user