mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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";
|
||||
|
@@ -38,6 +38,10 @@ public static class SettingsUtils
|
||||
HybridCLRCustomGlobalSettings.AOTMetaAssemblies = aOTMetaAssemblies;
|
||||
}
|
||||
|
||||
public static bool EnableUpdateData()
|
||||
{
|
||||
return FrameworkGlobalSettings.EnableUpdateData;
|
||||
}
|
||||
|
||||
public static string GetUpdateDataUrl()
|
||||
{
|
||||
|
Reference in New Issue
Block a user