From aea3d81834ae261a948b3ffdb39ca4fedf951106 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sun, 21 Aug 2011 00:07:00 +0000 Subject: [PATCH] If GDI not set in the config, show an error to the user when Directx fails to initialize --- BizHawk.MultiClient/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/Program.cs b/BizHawk.MultiClient/Program.cs index 8d286a19a1..b74c26399f 100644 --- a/BizHawk.MultiClient/Program.cs +++ b/BizHawk.MultiClient/Program.cs @@ -19,7 +19,7 @@ namespace BizHawk.MultiClient try { Global.DSound = new DirectSound(); } catch { - MessageBox.Show("Couldn't initialize DirectSound!"); + MessageBox.Show("Couldn't initialize DirectSound!", "Initialization Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } @@ -27,6 +27,8 @@ namespace BizHawk.MultiClient catch { //can fallback to GDI rendering + if (Global.Config.ForceGDI == true) + MessageBox.Show("Failure to initialize Directx, reverting to GDI rendering.", "Initialization Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Global.Config.ForceGDI = true; }