update runtime code

1. 移除了YooAssets.SetCacheSystemBuildinPath()方法
2. 移除了YooAssets.SetCacheSystemSandboxPath()方法
3. 移除了YooAssets.GetStreamingAssetBuildinFolderName()方法
4. 移除了YooAssets.GetSandboxRoot()方法
5. 移除了YooAssets.ClearSandbox()方法
mlyDevMerge1.5.7
hevinci 2023-07-05 14:50:21 +08:00 committed by QiJing
parent efbf1304ed
commit d1ad94bcfe
1 changed files with 0 additions and 69 deletions

View File

@ -253,48 +253,6 @@ namespace YooAsset
CacheSystem.InitVerifyLevel = verifyLevel;
}
/// <summary>
/// 设置缓存系统参数,沙盒目录的存储路径
/// </summary>
public static void SetCacheSystemBuildinPath(string buildinPath)
{
if (string.IsNullOrEmpty(buildinPath))
{
YooLogger.Error($"Buildin path is null or empty !");
return;
}
// 注意:需要确保没有任何资源系统起效之前才可以设置!
if (_packages.Count > 0)
{
YooLogger.Error($"Please call this method {nameof(SetCacheSystemBuildinPath)} before the package is created !");
return;
}
PersistentTools.OverwriteBuildinPath(buildinPath);
}
/// <summary>
/// 设置缓存系统参数,沙盒目录的存储路径
/// </summary>
public static void SetCacheSystemSandboxPath(string sandboxPath)
{
if (string.IsNullOrEmpty(sandboxPath))
{
YooLogger.Error($"Sandbox path is null or empty !");
return;
}
// 注意:需要确保没有任何资源系统起效之前才可以设置!
if (_packages.Count > 0)
{
YooLogger.Error($"Please call this method {nameof(SetCacheSystemSandboxPath)} before the package is created !");
return;
}
PersistentTools.OverwriteSandboxPath(sandboxPath);
}
/// <summary>
/// 设置缓存系统参数禁用缓存在WebGL平台
/// </summary>
@ -304,33 +262,6 @@ namespace YooAsset
}
#endregion
#region 沙盒相关
/// <summary>
/// 获取内置文件夹名称
/// </summary>
public static string GetStreamingAssetBuildinFolderName()
{
return YooAssetSettings.StreamingAssetsBuildinFolder;
}
/// <summary>
/// 获取沙盒的根路径
/// </summary>
public static string GetSandboxRoot()
{
return PersistentTools.GetPersistentRootPath();
}
/// <summary>
/// 清空沙盒目录需要重启APP
/// </summary>
public static void ClearSandbox()
{
YooLogger.Warning("Clear sandbox folder files, Finally, restart the application !");
PersistentTools.DeleteSandbox();
}
#endregion
#region 调试信息
internal static DebugReport GetDebugReport()
{