From 3d14e552974838b3406b7aad146b4cb109658448 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 17 Dec 2012 15:38:56 +0000 Subject: [PATCH] bomb out if Bizhawk.Emulation and Bizhawk.Util versions don't match Bizhawk.MultiClient version --- BizHawk.MultiClient/Program.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/Program.cs b/BizHawk.MultiClient/Program.cs index 8a9a183127..f64f2fb900 100644 --- a/BizHawk.MultiClient/Program.cs +++ b/BizHawk.MultiClient/Program.cs @@ -33,6 +33,19 @@ namespace BizHawk.MultiClient Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); + // catch morons who mix versions + { + var thisversion = typeof(Program).Assembly.GetName().Version; + var utilversion = typeof(InputValidate).Assembly.GetName().Version; + var emulversion = typeof(Log).Assembly.GetName().Version; + + if (thisversion != utilversion || thisversion != emulversion) + { + MessageBox.Show("Conflicting revisions found! Don't mix .dll versions!"); + return; + } + } + Global.Config = ConfigService.Load(PathManager.DefaultIniPath, new Config()); #if WINDOWS @@ -71,7 +84,7 @@ namespace BizHawk.MultiClient } #if WINDOWS } -#endif +#endif } catch (Exception e) {