Commit my wonderful feature. Isn't it great?

This commit is contained in:
jianmingyong 2017-02-14 22:49:43 +08:00
parent d2d0bb189e
commit c3603fdf8e
5 changed files with 16 additions and 13 deletions

View File

@ -48,6 +48,7 @@ Public Class GameController
Public Graphics As GraphicsDeviceManager Public Graphics As GraphicsDeviceManager
Public FPSMonitor As FPSMonitor Public FPSMonitor As FPSMonitor
Public Shared UpdateChecked As Boolean = False
Public Sub New() Public Sub New()
Graphics = New GraphicsDeviceManager(Me) Graphics = New GraphicsDeviceManager(Me)

View File

@ -83,15 +83,19 @@ Public Class MainMenuScreen
Screen.Level.World.Initialize(Screen.Level.EnvironmentType, Screen.Level.WeatherType) Screen.Level.World.Initialize(Screen.Level.EnvironmentType, Screen.Level.WeatherType)
Try Try
Logger.Debug("---Check Version---") If Not GameController.UpdateChecked Then
Logger.Debug("---Check Version---")
Dim Updater As New Process() Dim Updater As New Process()
Updater.StartInfo = New ProcessStartInfo("Updater.exe") Updater.StartInfo = New ProcessStartInfo("Updater.exe")
Updater.Start() Updater.Start()
Updater.WaitForExit() Updater.WaitForExit()
If Updater.ExitCode = 1 Then If Updater.ExitCode = 1 Then
Core.GameInstance.Exit() Environment.Exit(0)
Else
GameController.UpdateChecked = True
End If
End If End If
Catch ex As Exception Catch ex As Exception
End Try End Try

View File

@ -1,6 +1,4 @@
Imports System.Net Imports System.Threading
Imports System.Net.Cache
Imports System.Threading
Friend Class SplashScreen Friend Class SplashScreen

View File

@ -6,8 +6,8 @@
Shared _valid As Boolean = False Shared _valid As Boolean = False
Const RUNVALIDATION As Boolean = False Const RUNVALIDATION As Boolean = False
Const EXPECTEDSIZE As Integer = 42393009 Const EXPECTEDSIZE As Integer = 42393016
Const METAHASH As String = "MzMwN0I2QTAwQzVFMTYzRjZEM0ZFMjAwQURBQzBBM0E=" Const METAHASH As String = "QkMyMEE2NEQxMDI3MDE1NkUzRjEzOEY5RDExRTk2RDU="
Public Shared ReadOnly Property IsValid(ByVal ForceResult As Boolean) As Boolean Public Shared ReadOnly Property IsValid(ByVal ForceResult As Boolean) As Boolean
Get Get

File diff suppressed because one or more lines are too long