public Loader(string[] args) { if (RTCV.NetCore.NetCore_Extensions.IsGDIEnhancedScalingAvailable()) { RTCV.NetCore.NetCore_Extensions.SetThreadDpiAwarenessContext(RTCV.NetCore.NetCore_Extensions.DPI_AWARENESS_CONTEXT.DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED); Application.EnableVisualStyles(); } InitializeComponent(); //Create the RTC log next to the executable string rtcLogPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "RTC", "RTC_LOG.txt"); RTCV.NetCore.NetCore_Extensions.ConsoleHelper.CreateConsole(); RTCV.Common.Logging.StartLogging(rtcLogPath); if (args.Contains("-CONSOLE")) { RTCV.NetCore.NetCore_Extensions.ConsoleHelper.ShowConsole(); } else { RTCV.NetCore.NetCore_Extensions.ConsoleHelper.HideConsole(); } UICore.Start(this); }