First test alright?

This commit is contained in:
jianmingyong 2017-02-13 22:13:51 +08:00
parent 1b5ed958d5
commit d2d0bb189e
4 changed files with 11 additions and 9 deletions

View File

@ -42,6 +42,9 @@
<ItemGroup>
<Content Include="Pokemon3D.ico" />
<Content Include="Pokemon\Items\_itemList.txt" />
<Content Include="Updater.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="CurrentVersion.dat" />
<Reference Include="OpenTK">
<HintPath>$(MSBuildProgramFiles32)\MonoGame\v3.0\Assemblies\DesktopGL\OpenTK.dll</HintPath>

View File

@ -1 +1 @@
0.54.1
0.55

View File

@ -85,14 +85,13 @@ Public Class MainMenuScreen
Try
Logger.Debug("---Check Version---")
Dim client As New WebClient
client.CachePolicy = New RequestCachePolicy(RequestCacheLevel.BypassCache)
Dim version As String = client.DownloadString("https://raw.githubusercontent.com/P3D-Legacy/P3D-Legacy/master/2.5DHero/2.5DHero/CurrentVersion.dat")
If version <> "0.54.1" Then
If MsgBox("New version detected." & vbNewLine & "Current Version: Indev 0.54.1" & vbNewLine & "Newest Version: Indev " & version & vbNewLine & vbNewLine & "Would you like to update the game?", MsgBoxStyle.YesNo, "Game Update") = MsgBoxResult.Yes Then
Process.Start("https://p3d-legacy.github.io/P3D-Legacy-Launcher/latestRelease")
Core.GameInstance.Exit()
End If
Dim Updater As New Process()
Updater.StartInfo = New ProcessStartInfo("Updater.exe")
Updater.Start()
Updater.WaitForExit()
If Updater.ExitCode = 1 Then
Core.GameInstance.Exit()
End If
Catch ex As Exception
End Try

Binary file not shown.