using System.Diagnostics; using System.Reflection; namespace Server; public class Application { public static void Main(string[] args) { bool profiling = false; foreach (var a in args) { if (a.InsensitiveEquals("-profile")) { profiling = true; } } Core.Setup(profiling, Assembly.GetEntryAssembly(), Process.GetCurrentProcess()); } }