mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-25 23:05:24 +02:00
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 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)
|
||||||
|
@ -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
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
Imports System.Net
|
Imports System.Threading
|
||||||
Imports System.Net.Cache
|
|
||||||
Imports System.Threading
|
|
||||||
|
|
||||||
Friend Class SplashScreen
|
Friend Class SplashScreen
|
||||||
|
|
||||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user