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)
This commit is contained in:
parent
26969addb9
commit
2255e5c9ea
|
@ -178,10 +178,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
_chromeless = true;
|
_chromeless = true;
|
||||||
}
|
}
|
||||||
else if (arg.StartsWith("--gdi"))
|
|
||||||
{
|
|
||||||
Global.Config.DispMethod = Config.EDispMethod.GdiPlus;
|
|
||||||
}
|
|
||||||
else if (arg.StartsWith("--fullscreen"))
|
else if (arg.StartsWith("--fullscreen"))
|
||||||
{
|
{
|
||||||
startFullscreen = true;
|
startFullscreen = true;
|
||||||
|
|
|
@ -69,6 +69,16 @@ namespace BizHawk.Client.EmuHawk
|
||||||
Global.Config.ResolveDefaults();
|
Global.Config.ResolveDefaults();
|
||||||
HawkFile.ArchiveHandlerFactory = new SevenZipSharpArchiveHandler();
|
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
|
#if WINDOWS
|
||||||
try { GlobalWin.DSound = SoundEnumeration.Create(); }
|
try { GlobalWin.DSound = SoundEnumeration.Create(); }
|
||||||
catch
|
catch
|
||||||
|
|
Loading…
Reference in New Issue