From 6bf8e3643bac72dda4afb811f25b81ca684acca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Fri, 3 Jan 2025 15:44:44 +0800 Subject: [PATCH] fix #428 --- .../Runtime/DownloadSystem/DownloadSystemHelper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs index c01a5489..6f52914b 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs @@ -39,15 +39,15 @@ namespace YooAsset url = path; else 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 if (path.StartsWith("jar:file://")) url = path; 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 throw new System.NotImplementedException(); #endif