mirror of https://github.com/tuyoogame/YooAsset
fix #428
parent
6ab704bb77
commit
6bf8e3643b
|
@ -39,15 +39,15 @@ namespace YooAsset
|
||||||
url = path;
|
url = path;
|
||||||
else
|
else
|
||||||
url = StringUtility.Format("jar:file://{0}", path);
|
url = StringUtility.Format("jar:file://{0}", path);
|
||||||
#elif UNITY_STANDALONE_OSX
|
|
||||||
url = new System.Uri(path).ToString();
|
|
||||||
#elif UNITY_STANDALONE
|
|
||||||
url = StringUtility.Format("file:///{0}", path);
|
|
||||||
#elif UNITY_OPENHARMONY
|
#elif UNITY_OPENHARMONY
|
||||||
if (path.StartsWith("jar:file://"))
|
if (path.StartsWith("jar:file://"))
|
||||||
url = path;
|
url = path;
|
||||||
else
|
else
|
||||||
url = StringUtility.Format("file://{0}", path);
|
url = StringUtility.Format("jar:file://{0}", path);
|
||||||
|
#elif UNITY_STANDALONE_OSX
|
||||||
|
url = new System.Uri(path).ToString();
|
||||||
|
#elif UNITY_STANDALONE
|
||||||
|
url = StringUtility.Format("file:///{0}", path);
|
||||||
#else
|
#else
|
||||||
throw new System.NotImplementedException();
|
throw new System.NotImplementedException();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue