pull/455/head
何冠峰 2025-01-03 15:44:44 +08:00
parent 6ab704bb77
commit 6bf8e3643b
1 changed files with 5 additions and 5 deletions

View File

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