This commit is contained in:
ALEXTANG
2023-05-09 21:02:24 +08:00
parent 878a05b614
commit 9016dd9e61
3 changed files with 16 additions and 7 deletions

View File

@@ -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();
}
}
}

View File

@@ -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";

View File

@@ -38,6 +38,10 @@ public static class SettingsUtils
HybridCLRCustomGlobalSettings.AOTMetaAssemblies = aOTMetaAssemblies;
}
public static bool EnableUpdateData()
{
return FrameworkGlobalSettings.EnableUpdateData;
}
public static string GetUpdateDataUrl()
{