From 0a7a883aae41a7967c26c4be57413c2f0ce6f362 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 20 Feb 2024 11:31:27 +0800 Subject: [PATCH] fix #244 --- Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs b/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs index 03ad554..e9e981e 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs @@ -15,7 +15,10 @@ namespace YooAsset #elif UNITY_IPHONE return StringUtility.Format("file://{0}", path); #elif UNITY_ANDROID - return path; + if (path.StartsWith("jar:file//")) + return path; + else + return StringUtility.Format("jar:file://{0}", path); #elif UNITY_STANDALONE_OSX return new System.Uri(path).ToString(); #elif UNITY_STANDALONE