Skip to content

Commit

Permalink
update outdated-bridge dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
LastExceed committed Sep 16, 2018
1 parent a576d27 commit e842e7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Bridge/BridgeTCPUDP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ public static void ProcessServerPacket(int packetID) {
#region VersionCheck
if (!sreader.ReadBoolean()) {
form.Log("mismatch\n", Color.Red);
MessageBox.Show("your bridge is outdated\nupdate\nstay offline");
var b = MessageBox.Show("your bridge is outdated. Please download the newest version.\n\nGo to download page now?", "version mismatch", MessageBoxButtons.YesNo);
if (b == DialogResult.Yes) {
System.Diagnostics.Process.Start("https://github.com/LastExceed/Exceed/releases");
}
return;
}
form.Log("match\n", Color.Green);
Expand Down
2 changes: 1 addition & 1 deletion Resources/Config.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Resources {
static public class Config {
public const int mapseed = 8710; //hardcoded for now
public const int bridgeVersion = 13;
public const int bridgeVersion = 14;
public const string serverIP = "pb97.ddns.net";//temp
public const int serverPort = 12346;
}
Expand Down

0 comments on commit e842e7c

Please sign in to comment.