From 51b688bbddfb54914c57376b3fcb750b05e9fc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Tue, 31 Dec 2024 10:02:01 +0800 Subject: [PATCH] fix #426 --- .../YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs index 54e182e5..c01a5489 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs @@ -44,7 +44,10 @@ namespace YooAsset #elif UNITY_STANDALONE url = StringUtility.Format("file:///{0}", path); #elif UNITY_OPENHARMONY - url = StringUtility.Format("file://{0}", path); + if (path.StartsWith("jar:file://")) + url = path; + else + url = StringUtility.Format("file://{0}", path); #else throw new System.NotImplementedException(); #endif