From 2255e5c9ea60e9673e0d18ad9460af0f9d9e1b79 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 16 Dec 2014 19:35:52 +0000 Subject: [PATCH] emuhawk - add --gdi commandline so that you can force the program to boot up that way instead of attempting to use a broken opengl by default (take 2) --- BizHawk.Client.EmuHawk/MainForm.cs | 4 ---- BizHawk.Client.EmuHawk/Program.cs | 10 ++++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index d6f1ef967e..1cfbc8dc04 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -178,10 +178,6 @@ namespace BizHawk.Client.EmuHawk { _chromeless = true; } - else if (arg.StartsWith("--gdi")) - { - Global.Config.DispMethod = Config.EDispMethod.GdiPlus; - } else if (arg.StartsWith("--fullscreen")) { startFullscreen = true; diff --git a/BizHawk.Client.EmuHawk/Program.cs b/BizHawk.Client.EmuHawk/Program.cs index 38866f8fb7..45c6c1c078 100644 --- a/BizHawk.Client.EmuHawk/Program.cs +++ b/BizHawk.Client.EmuHawk/Program.cs @@ -69,6 +69,16 @@ namespace BizHawk.Client.EmuHawk Global.Config.ResolveDefaults(); HawkFile.ArchiveHandlerFactory = new SevenZipSharpArchiveHandler(); + //super hacky! this needs to be done first. still not worth the trouble to make this system fully proper + for (int i = 0; i < args.Length; i++) + { + var arg = args[i].ToLower(); + if (arg.StartsWith("--gdi")) + { + Global.Config.DispMethod = Config.EDispMethod.GdiPlus; + } + } + #if WINDOWS try { GlobalWin.DSound = SoundEnumeration.Create(); } catch