2024-07-04 20:36:26 +08:00
|
|
|
|
|
|
|
|
|
|
namespace YooAsset
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2024-07-07 00:52:17 +08:00
|
|
|
|
/// 解压文件系统
|
2024-07-04 20:36:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
internal class DefaultUnpackFileSystem : DefaultCacheFileSystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public DefaultUnpackFileSystem()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
public override void OnCreate(string packageName, string rootDirectory)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnCreate(packageName, rootDirectory);
|
|
|
|
|
|
|
|
|
|
|
|
// 注意:重写保存根目录和临时目录
|
2025-03-31 17:26:46 +08:00
|
|
|
|
_cacheBundleFilesRoot = PathUtility.Combine(_packageRoot, DefaultUnpackFileSystemDefine.SaveBundleFilesFolderName);
|
|
|
|
|
|
_cacheManifestFilesRoot = PathUtility.Combine(_packageRoot, DefaultUnpackFileSystemDefine.SaveManifestFilesFolderName);
|
2025-01-03 15:08:57 +08:00
|
|
|
|
_tempFilesRoot = PathUtility.Combine(_packageRoot, DefaultUnpackFileSystemDefine.TempFilesFolderName);
|
2024-07-04 20:36:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|