#pragma warning restore 649 public static void Main(string[] args) { if (CommandLineArgs.TryParse(args, out var parsed)) { ParsedMain(parsed); } }
public static void Start(string[] args, bool contentStart = false) { if (_hasStarted) { throw new InvalidOperationException("Cannot start twice!"); } _hasStarted = true; if (CommandLineArgs.TryParse(args, out var parsed)) { ParsedMain(parsed, contentStart); } }
public static void Start(string[] args, GameControllerOptions options, bool contentStart = false, IMainArgs?loaderArgs = null) { if (_hasStarted) { throw new InvalidOperationException("Cannot start twice!"); } _hasStarted = true; if (CommandLineArgs.TryParse(args, out var parsed)) { ParsedMain(parsed, contentStart, loaderArgs, options); } }