Update Utility

pull/4/head
hevinci 2022-03-23 18:23:15 +08:00
parent 75fc210218
commit b3fcbf85ff
1 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ namespace YooAsset
/// </summary> /// </summary>
public static void DeleteSandboxPatchManifestFile() public static void DeleteSandboxPatchManifestFile()
{ {
string filePath = PathHelper.MakePersistentLoadPath(ResourceSettingData.Setting.PatchManifestFileName); string filePath = PathHelper.MakePersistentLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName);
if (File.Exists(filePath)) if (File.Exists(filePath))
File.Delete(filePath); File.Delete(filePath);
} }
@ -194,7 +194,7 @@ namespace YooAsset
/// </summary> /// </summary>
public static bool CheckSandboxPatchManifestFileExist() public static bool CheckSandboxPatchManifestFileExist()
{ {
string filePath = PathHelper.MakePersistentLoadPath(ResourceSettingData.Setting.PatchManifestFileName); string filePath = PathHelper.MakePersistentLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName);
return File.Exists(filePath); return File.Exists(filePath);
} }
@ -205,7 +205,7 @@ namespace YooAsset
/// <returns></returns> /// <returns></returns>
public static string GetSandboxPatchManifestFileHash() public static string GetSandboxPatchManifestFileHash()
{ {
string filePath = PathHelper.MakePersistentLoadPath(ResourceSettingData.Setting.PatchManifestFileName); string filePath = PathHelper.MakePersistentLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName);
if (File.Exists(filePath)) if (File.Exists(filePath))
return HashUtility.FileMD5(filePath); return HashUtility.FileMD5(filePath);
else else