static void Main(string[] args) { if (args.Length > 0 && !args.Contains("/gui")) { // If given command line args, go into command line mode. AttachConsole(-1); bool sekiro = false; RandomizerOptions options = RandomizerOptions.Parse(args, sekiro); if (options.Seed == 0) { options.Seed = (uint)new Random().Next(); } string outPath = @"C:\Program Files (x86)\Steam\steamapps\common\DARK SOULS III\Game\randomizer"; new Randomizer().Randomize(options, status => Console.WriteLine("## " + status), outPath, sekiro); Application.Exit(); } else { #if DEBUG AttachConsole(-1); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } }
static void Main(string[] args) { if (args.Length > 0 && !args.Contains("/gui")) { // If given command line args, go into command line mode. AttachConsole(-1); bool sekiro = true; RandomizerOptions options = RandomizerOptions.Parse(args, sekiro); if (options.Seed == 0) { options.Seed = (uint)new Random().Next(); } Preset preset = null; if (options.Preset != null) { preset = Preset.LoadPreset(options.Preset, extractOopsAll: true); } if (preset == null && File.Exists("Dev.txt")) { options.Preset = "Dev"; preset = Preset.LoadPreset("Dev", filename: "Dev.txt"); } string outPath = @"C:\Program Files (x86)\Steam\steamapps\common\Sekiro\randomizer"; new Randomizer().Randomize(options, status => Console.WriteLine("## " + status), outPath, sekiro, preset); Application.Exit(); } else { #if DEBUG AttachConsole(-1); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new SekiroForm()); } }