mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update
This commit is contained in:
@@ -62,13 +62,16 @@ namespace GameMain
|
|||||||
sizeMb = Mathf.Clamp(sizeMb, 0.1f, float.MaxValue);
|
sizeMb = Mathf.Clamp(sizeMb, 0.1f, float.MaxValue);
|
||||||
_totalSizeMb = sizeMb.ToString("f1");
|
_totalSizeMb = sizeMb.ToString("f1");
|
||||||
|
|
||||||
#if false
|
if (SettingsUtils. EnableUpdateData())
|
||||||
UILoadTip.ShowMessageBox($"Found update patch files, Total count {_totalDownloadCount} Total size {_totalSizeMb}MB", MessageShowType.TwoButton,
|
{
|
||||||
LoadStyle.StyleEnum.Style_StartUpdate_Notice
|
UILoadTip.ShowMessageBox($"Found update patch files, Total count {_totalDownloadCount} Total size {_totalSizeMb}MB", MessageShowType.TwoButton,
|
||||||
, StartDownFile, Application.Quit);
|
LoadStyle.StyleEnum.Style_StartUpdate_Notice
|
||||||
#endif
|
, StartDownFile, Application.Quit);
|
||||||
|
}
|
||||||
RequestUpdateData().Forget();
|
else
|
||||||
|
{
|
||||||
|
RequestUpdateData().Forget();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -198,6 +198,8 @@ public class FrameworkGlobalSettings
|
|||||||
get { return m_ResourceVersionFileName; }
|
get { return m_ResourceVersionFileName; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool EnableUpdateData = false;
|
||||||
|
|
||||||
public string WindowsUpdateDataUrl = "http://127.0.0.1";
|
public string WindowsUpdateDataUrl = "http://127.0.0.1";
|
||||||
public string MacOSUpdateDataUrl = "http://127.0.0.1";
|
public string MacOSUpdateDataUrl = "http://127.0.0.1";
|
||||||
public string IOSUpdateDataUrl = "http://127.0.0.1";
|
public string IOSUpdateDataUrl = "http://127.0.0.1";
|
||||||
|
@@ -38,6 +38,10 @@ public static class SettingsUtils
|
|||||||
HybridCLRCustomGlobalSettings.AOTMetaAssemblies = aOTMetaAssemblies;
|
HybridCLRCustomGlobalSettings.AOTMetaAssemblies = aOTMetaAssemblies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool EnableUpdateData()
|
||||||
|
{
|
||||||
|
return FrameworkGlobalSettings.EnableUpdateData;
|
||||||
|
}
|
||||||
|
|
||||||
public static string GetUpdateDataUrl()
|
public static string GetUpdateDataUrl()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user