mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-30 05:28:46 +00:00
fix #438
This commit is contained in:
@@ -40,10 +40,20 @@ namespace YooAsset
|
|||||||
else
|
else
|
||||||
url = StringUtility.Format("jar:file://{0}", path);
|
url = StringUtility.Format("jar:file://{0}", path);
|
||||||
#elif UNITY_OPENHARMONY
|
#elif UNITY_OPENHARMONY
|
||||||
if (path.StartsWith("jar:file://"))
|
if (UnityEngine.Application.streamingAssetsPath.StartsWith("jar:file://"))
|
||||||
url = path;
|
{
|
||||||
|
if (path.StartsWith("jar:file://"))
|
||||||
|
url = path;
|
||||||
|
else
|
||||||
|
url = StringUtility.Format("jar:file://{0}", path);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
url = StringUtility.Format("jar:file://{0}", path);
|
{
|
||||||
|
if (path.StartsWith("file://"))
|
||||||
|
url = path;
|
||||||
|
else
|
||||||
|
url = StringUtility.Format("file://{0}", path);
|
||||||
|
}
|
||||||
#elif UNITY_STANDALONE_OSX
|
#elif UNITY_STANDALONE_OSX
|
||||||
url = new System.Uri(path).ToString();
|
url = new System.Uri(path).ToString();
|
||||||
#elif UNITY_STANDALONE
|
#elif UNITY_STANDALONE
|
||||||
|
|||||||
Reference in New Issue
Block a user