mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-30 05:28:46 +00:00
fix #620
This commit is contained in:
@@ -43,11 +43,11 @@ namespace YooAsset
|
|||||||
// 说明:AppleTV对应的是tvOS系统。
|
// 说明:AppleTV对应的是tvOS系统。
|
||||||
#if UNITY_EDITOR_OSX
|
#if UNITY_EDITOR_OSX
|
||||||
url = StringUtility.Format("file://{0}", path);
|
url = StringUtility.Format("file://{0}", path);
|
||||||
#elif UNITY_EDITOR
|
#elif UNITY_EDITOR_WIN
|
||||||
url = StringUtility.Format("file:///{0}", path);
|
url = StringUtility.Format("file:///{0}", path);
|
||||||
#elif UNITY_WEBGL
|
#elif UNITY_WEBGL
|
||||||
url = path;
|
url = path;
|
||||||
#elif UNITY_IPHONE
|
#elif UNITY_IOS || UNITY_IPHONE
|
||||||
url = StringUtility.Format("file://{0}", path);
|
url = StringUtility.Format("file://{0}", path);
|
||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
if (path.StartsWith("jar:file://"))
|
if (path.StartsWith("jar:file://"))
|
||||||
@@ -69,12 +69,17 @@ namespace YooAsset
|
|||||||
else
|
else
|
||||||
url = StringUtility.Format("file://{0}", path);
|
url = StringUtility.Format("file://{0}", path);
|
||||||
}
|
}
|
||||||
#elif UNITY_STANDALONE_OSX
|
|
||||||
url = new System.Uri(path).ToString();
|
#elif UNITY_WSA
|
||||||
#elif UNITY_STANDALONE || UNITY_WSA
|
|
||||||
url = StringUtility.Format("file:///{0}", path);
|
url = StringUtility.Format("file:///{0}", path);
|
||||||
#elif UNITY_TVOS
|
#elif UNITY_TVOS
|
||||||
url = StringUtility.Format("file:///{0}", path);
|
url = StringUtility.Format("file:///{0}", path);
|
||||||
|
#elif UNITY_STANDALONE_OSX
|
||||||
|
url = new System.Uri(path).ToString();
|
||||||
|
#elif UNITY_STANDALONE_WIN
|
||||||
|
url = StringUtility.Format("file:///{0}", path);
|
||||||
|
#elif UNITY_STANDALONE_LINUX
|
||||||
|
url = StringUtility.Format("file:///root/{0}", path);
|
||||||
#else
|
#else
|
||||||
throw new System.NotImplementedException();
|
throw new System.NotImplementedException();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user