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 FPSMonitor As FPSMonitor
Public Shared UpdateChecked As Boolean = False
Public Sub New()
Graphics = New GraphicsDeviceManager(Me)

View File

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

View File

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

View File

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