diff --git a/Assets/GameScripts/Main/Procedure/ProcedureCreateDownloader.cs b/Assets/GameScripts/Main/Procedure/ProcedureCreateDownloader.cs index 87dccc75..e1765880 100644 --- a/Assets/GameScripts/Main/Procedure/ProcedureCreateDownloader.cs +++ b/Assets/GameScripts/Main/Procedure/ProcedureCreateDownloader.cs @@ -62,13 +62,16 @@ namespace GameMain sizeMb = Mathf.Clamp(sizeMb, 0.1f, float.MaxValue); _totalSizeMb = sizeMb.ToString("f1"); -#if false - UILoadTip.ShowMessageBox($"Found update patch files, Total count {_totalDownloadCount} Total size {_totalSizeMb}MB", MessageShowType.TwoButton, - LoadStyle.StyleEnum.Style_StartUpdate_Notice - , StartDownFile, Application.Quit); -#endif - - RequestUpdateData().Forget(); + if (SettingsUtils. EnableUpdateData()) + { + UILoadTip.ShowMessageBox($"Found update patch files, Total count {_totalDownloadCount} Total size {_totalSizeMb}MB", MessageShowType.TwoButton, + LoadStyle.StyleEnum.Style_StartUpdate_Notice + , StartDownFile, Application.Quit); + } + else + { + RequestUpdateData().Forget(); + } } } diff --git a/Assets/TEngine/Runtime/GameSettings/Framework/FrameworkGlobalSettings.cs b/Assets/TEngine/Runtime/GameSettings/Framework/FrameworkGlobalSettings.cs index 861a4c45..f1727526 100644 --- a/Assets/TEngine/Runtime/GameSettings/Framework/FrameworkGlobalSettings.cs +++ b/Assets/TEngine/Runtime/GameSettings/Framework/FrameworkGlobalSettings.cs @@ -198,6 +198,8 @@ public class FrameworkGlobalSettings get { return m_ResourceVersionFileName; } } + public bool EnableUpdateData = false; + public string WindowsUpdateDataUrl = "http://127.0.0.1"; public string MacOSUpdateDataUrl = "http://127.0.0.1"; public string IOSUpdateDataUrl = "http://127.0.0.1"; diff --git a/Assets/TEngine/Runtime/GameSettings/SettingsUtils.cs b/Assets/TEngine/Runtime/GameSettings/SettingsUtils.cs index dbc0df10..2ab04699 100644 --- a/Assets/TEngine/Runtime/GameSettings/SettingsUtils.cs +++ b/Assets/TEngine/Runtime/GameSettings/SettingsUtils.cs @@ -38,6 +38,10 @@ public static class SettingsUtils HybridCLRCustomGlobalSettings.AOTMetaAssemblies = aOTMetaAssemblies; } + public static bool EnableUpdateData() + { + return FrameworkGlobalSettings.EnableUpdateData; + } public static string GetUpdateDataUrl() {