If GDI not set in the config, show an error to the user when Directx fails to initialize
This commit is contained in:
parent
276c759d88
commit
aea3d81834
|
@ -19,7 +19,7 @@ namespace BizHawk.MultiClient
|
||||||
try { Global.DSound = new DirectSound(); }
|
try { Global.DSound = new DirectSound(); }
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
MessageBox.Show("Couldn't initialize DirectSound!");
|
MessageBox.Show("Couldn't initialize DirectSound!", "Initialization Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ namespace BizHawk.MultiClient
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
//can fallback to GDI rendering
|
//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;
|
Global.Config.ForceGDI = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue