Commit my wonderful feature. Isn't it great?
This commit is contained in:
parent
d2d0bb189e
commit
c3603fdf8e
|
@ -48,6 +48,7 @@ Public Class GameController
|
|||
|
||||
Public Graphics As GraphicsDeviceManager
|
||||
Public FPSMonitor As FPSMonitor
|
||||
Public Shared UpdateChecked As Boolean = False
|
||||
|
||||
Public Sub New()
|
||||
Graphics = New GraphicsDeviceManager(Me)
|
||||
|
|
|
@ -83,15 +83,19 @@ Public Class MainMenuScreen
|
|||
Screen.Level.World.Initialize(Screen.Level.EnvironmentType, Screen.Level.WeatherType)
|
||||
|
||||
Try
|
||||
Logger.Debug("---Check Version---")
|
||||
If Not GameController.UpdateChecked Then
|
||||
Logger.Debug("---Check Version---")
|
||||
|
||||
Dim Updater As New Process()
|
||||
Updater.StartInfo = New ProcessStartInfo("Updater.exe")
|
||||
Updater.Start()
|
||||
Updater.WaitForExit()
|
||||
Dim Updater As New Process()
|
||||
Updater.StartInfo = New ProcessStartInfo("Updater.exe")
|
||||
Updater.Start()
|
||||
Updater.WaitForExit()
|
||||
|
||||
If Updater.ExitCode = 1 Then
|
||||
Core.GameInstance.Exit()
|
||||
If Updater.ExitCode = 1 Then
|
||||
Environment.Exit(0)
|
||||
Else
|
||||
GameController.UpdateChecked = True
|
||||
End If
|
||||
End If
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
Imports System.Net
|
||||
Imports System.Net.Cache
|
||||
Imports System.Threading
|
||||
Imports System.Threading
|
||||
|
||||
Friend Class SplashScreen
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
Shared _valid As Boolean = False
|
||||
|
||||
Const RUNVALIDATION As Boolean = False
|
||||
Const EXPECTEDSIZE As Integer = 42393009
|
||||
Const METAHASH As String = "MzMwN0I2QTAwQzVFMTYzRjZEM0ZFMjAwQURBQzBBM0E="
|
||||
Const EXPECTEDSIZE As Integer = 42393016
|
||||
Const METAHASH As String = "QkMyMEE2NEQxMDI3MDE1NkUzRjEzOEY5RDExRTk2RDU="
|
||||
|
||||
Public Shared ReadOnly Property IsValid(ByVal ForceResult As Boolean) As Boolean
|
||||
Get
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue