/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { Loader.UpdateSupportedGames(); ColourMap.UpdateSupportedColorMaps(); string[] args = Environment.GetCommandLineArgs(); bool fullScreen = false; for (int i = 1; i < args.Length; ++i) { if (args[i] == "-f") { fullScreen = true; } if (args[i] == "-g") { if (i < args.Length - 1) { if (File.Exists(args[i + 1])) { if (Path.GetExtension(args[i + 1]).ToUpper().Contains("ZIP")) { StopEmulation(); OpenZipFile(args[i + 1]); StartEmulation(); } } } } } base.OnLoad(e); if (fullScreen) { ToggleFullscreen(); } }