update extension sample

This commit is contained in:
何冠峰
2024-08-19 12:29:54 +08:00
parent 9fe8dad72d
commit fbec06fa81
2 changed files with 15 additions and 14 deletions
@@ -177,7 +177,8 @@ internal class ByteGameFileSystem : IFileSystem
}
public virtual bool Exists(PackageBundle bundle)
{
return _fileSystemManager.AccessSync(bundle.FileName);
string filePath = GetCacheFileLoadPath(bundle);
return _fileSystemManager.AccessSync(filePath);
}
public virtual bool NeedDownload(PackageBundle bundle)
{
@@ -205,7 +206,7 @@ internal class ByteGameFileSystem : IFileSystem
}
#region 内部方法
private string GetFileLoadPath(PackageBundle bundle)
private string GetCacheFileLoadPath(PackageBundle bundle)
{
if (_cacheFilePaths.TryGetValue(bundle.BundleGUID, out string filePath) == false)
{