浏览代码

Fix error when non-ASCII characters in resource pack path

Co-authored-by: Haoyu Qiu <[email protected]>
kilian-diener 10 月之前
父节点
当前提交
a75460f267
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/io/file_access_zip.cpp

+ 1 - 1
core/io/file_access_zip.cpp

@@ -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;