Add --fullscreen commandline option
This commit is contained in:
parent
28d24ece1c
commit
c1650f0863
|
@ -158,6 +158,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
string cmdDumpType = null;
|
string cmdDumpType = null;
|
||||||
string cmdDumpName = null;
|
string cmdDumpName = null;
|
||||||
|
|
||||||
|
if (Global.Config.MainWndx >= 0 && Global.Config.MainWndy >= 0 && Global.Config.SaveWindowPosition)
|
||||||
|
{
|
||||||
|
Location = new Point(Global.Config.MainWndx, Global.Config.MainWndy);
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < args.Length; i++)
|
for (int i = 0; i < args.Length; i++)
|
||||||
{
|
{
|
||||||
//for some reason sometimes visual studio will pass this to us on the commandline. it makes no sense.
|
//for some reason sometimes visual studio will pass this to us on the commandline. it makes no sense.
|
||||||
|
@ -171,19 +176,37 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
string arg = args[i].ToLower();
|
string arg = args[i].ToLower();
|
||||||
if (arg.StartsWith("--load-slot="))
|
if (arg.StartsWith("--load-slot="))
|
||||||
|
{
|
||||||
cmdLoadState = arg.Substring(arg.IndexOf('=') + 1);
|
cmdLoadState = arg.Substring(arg.IndexOf('=') + 1);
|
||||||
|
}
|
||||||
else if (arg.StartsWith("--movie="))
|
else if (arg.StartsWith("--movie="))
|
||||||
|
{
|
||||||
cmdMovie = arg.Substring(arg.IndexOf('=') + 1);
|
cmdMovie = arg.Substring(arg.IndexOf('=') + 1);
|
||||||
|
}
|
||||||
else if (arg.StartsWith("--dump-type="))
|
else if (arg.StartsWith("--dump-type="))
|
||||||
|
{
|
||||||
cmdDumpType = arg.Substring(arg.IndexOf('=') + 1);
|
cmdDumpType = arg.Substring(arg.IndexOf('=') + 1);
|
||||||
|
}
|
||||||
else if (arg.StartsWith("--dump-name="))
|
else if (arg.StartsWith("--dump-name="))
|
||||||
|
{
|
||||||
cmdDumpName = arg.Substring(arg.IndexOf('=') + 1);
|
cmdDumpName = arg.Substring(arg.IndexOf('=') + 1);
|
||||||
|
}
|
||||||
else if (arg.StartsWith("--dump-length="))
|
else if (arg.StartsWith("--dump-length="))
|
||||||
|
{
|
||||||
int.TryParse(arg.Substring(arg.IndexOf('=') + 1), out _autoDumpLength);
|
int.TryParse(arg.Substring(arg.IndexOf('=') + 1), out _autoDumpLength);
|
||||||
|
}
|
||||||
else if (arg.StartsWith("--dump-close"))
|
else if (arg.StartsWith("--dump-close"))
|
||||||
|
{
|
||||||
autoCloseOnDump = true;
|
autoCloseOnDump = true;
|
||||||
|
}
|
||||||
|
else if (arg.StartsWith("--fullscreen"))
|
||||||
|
{
|
||||||
|
ToggleFullscreen();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
cmdRom = arg;
|
cmdRom = arg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmdRom != null)
|
if (cmdRom != null)
|
||||||
|
@ -244,58 +267,72 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.LoadRamWatch(!Global.Config.DisplayRamWatch);
|
GlobalWin.Tools.LoadRamWatch(!Global.Config.DisplayRamWatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.RecentSearches.AutoLoad)
|
if (Global.Config.RecentSearches.AutoLoad)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<RamSearch>();
|
GlobalWin.Tools.Load<RamSearch>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadHexEditor)
|
if (Global.Config.AutoLoadHexEditor)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<HexEditor>();
|
GlobalWin.Tools.Load<HexEditor>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.RecentCheats.AutoLoad)
|
if (Global.Config.RecentCheats.AutoLoad)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<Cheats>();
|
GlobalWin.Tools.Load<Cheats>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadNESPPU && Global.Emulator is NES)
|
if (Global.Config.AutoLoadNESPPU && Global.Emulator is NES)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<NESPPU>();
|
GlobalWin.Tools.Load<NESPPU>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadNESNameTable && Global.Emulator is NES)
|
if (Global.Config.AutoLoadNESNameTable && Global.Emulator is NES)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<NESNameTableViewer>();
|
GlobalWin.Tools.Load<NESNameTableViewer>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadNESDebugger && Global.Emulator is NES)
|
if (Global.Config.AutoLoadNESDebugger && Global.Emulator is NES)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<NESDebugger>();
|
GlobalWin.Tools.Load<NESDebugger>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.NESGGAutoload && Global.Emulator is NES)
|
if (Global.Config.NESGGAutoload && Global.Emulator is NES)
|
||||||
{
|
{
|
||||||
LoadGameGenieEc();
|
LoadGameGenieEc();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadGBGPUView && Global.Emulator is Gameboy)
|
if (Global.Config.AutoLoadGBGPUView && Global.Emulator is Gameboy)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<GBGPUView>();
|
GlobalWin.Tools.Load<GBGPUView>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoloadTAStudio)
|
if (Global.Config.AutoloadTAStudio)
|
||||||
{
|
{
|
||||||
LoadTAStudio();
|
LoadTAStudio();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoloadVirtualPad)
|
if (Global.Config.AutoloadVirtualPad)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<VirtualPadForm>();
|
GlobalWin.Tools.Load<VirtualPadForm>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadLuaConsole)
|
if (Global.Config.AutoLoadLuaConsole)
|
||||||
{
|
{
|
||||||
OpenLuaConsole();
|
OpenLuaConsole();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.PCEBGViewerAutoload && Global.Emulator is PCEngine)
|
if (Global.Config.PCEBGViewerAutoload && Global.Emulator is PCEngine)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<PCEBGViewer>();
|
GlobalWin.Tools.Load<PCEBGViewer>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.AutoLoadSNESGraphicsDebugger && Global.Emulator is LibsnesCore)
|
if (Global.Config.AutoLoadSNESGraphicsDebugger && Global.Emulator is LibsnesCore)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<SNESGraphicsDebugger>();
|
GlobalWin.Tools.Load<SNESGraphicsDebugger>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.TraceLoggerAutoLoad)
|
if (Global.Config.TraceLoggerAutoLoad)
|
||||||
{
|
{
|
||||||
if (Global.CoreComm.CpuTraceAvailable)
|
if (Global.CoreComm.CpuTraceAvailable)
|
||||||
|
@ -304,11 +341,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Config.MainWndx >= 0 && Global.Config.MainWndy >= 0 && Global.Config.SaveWindowPosition)
|
|
||||||
{
|
|
||||||
Location = new Point(Global.Config.MainWndx, Global.Config.MainWndy);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Global.Config.DisplayStatusBar == false)
|
if (Global.Config.DisplayStatusBar == false)
|
||||||
{
|
{
|
||||||
MainStatusBar.Visible = false;
|
MainStatusBar.Visible = false;
|
||||||
|
|
Loading…
Reference in New Issue