Compare commits
No commits in common. "main" and "1.4.16" have entirely different histories.
|
@ -246,7 +246,7 @@ namespace YooAsset
|
|||
var result = CacheSystem.VerifyingRecordFile(MainBundleInfo.Bundle.PackageName, MainBundleInfo.Bundle.CacheGUID);
|
||||
if (result != EVerifyResult.Succeed)
|
||||
{
|
||||
YooLogger.Error($"Found possibly corrupt file ! {MainBundleInfo.Bundle.CacheGUID} Verify result : {result}");
|
||||
YooLogger.Error($"Found possibly corrupt file ! {MainBundleInfo.Bundle.CacheGUID}");
|
||||
CacheSystem.DiscardFile(MainBundleInfo.Bundle.PackageName, MainBundleInfo.Bundle.CacheGUID);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,13 +23,6 @@ public sealed class StreamingAssetsHelper
|
|||
private static bool _isInit = false;
|
||||
private static readonly HashSet<string> _cacheData = new HashSet<string>();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public static void Init() { _isInit = true; }
|
||||
public static bool FileExists(string fileName)
|
||||
{
|
||||
return File.Exists(System.IO.Path.Combine(Application.streamingAssetsPath, "BuildinFiles", fileName));
|
||||
}
|
||||
#else
|
||||
/// <summary>
|
||||
/// 初始化
|
||||
/// </summary>
|
||||
|
@ -56,7 +49,6 @@ public sealed class StreamingAssetsHelper
|
|||
|
||||
return _cacheData.Contains(fileName);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
|
Loading…
Reference in New Issue