Add VerifyLevel filed.

增加了下载文件校验等级初始化参数。
This commit is contained in:
hevinci
2022-06-21 16:04:59 +08:00
parent c0099cb90c
commit 00688a65af
6 changed files with 80 additions and 17 deletions

View File

@@ -104,6 +104,11 @@ namespace YooAsset
/// 启用断点续传功能的文件大小
/// </summary>
public int BreakpointResumeFileSize = int.MaxValue;
/// <summary>
/// 下载文件校验等级
/// </summary>
public EVerifyLevel VerifyLevel = EVerifyLevel.High;
}
@@ -193,7 +198,7 @@ namespace YooAsset
throw new Exception($"{EPlayMode.HostPlayMode} not supports WebGL platform !");
#else
var hostPlayModeParameters = parameters as HostPlayModeParameters;
DownloadSystem.Initialize(hostPlayModeParameters.BreakpointResumeFileSize);
DownloadSystem.Initialize(hostPlayModeParameters.BreakpointResumeFileSize, hostPlayModeParameters.VerifyLevel);
#endif
}