/* * Created by SharpDevelop. * User: BITL-Gaming * Date: 10/7/2016 * Time: 3:01 PM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Linq; using System.Windows.Forms; namespace NovetusLauncher { /// /// Class with program entry point. /// internal sealed class Program { static string ProcessInput(string s) { return s; } /// /// Program entry point. /// [STAThread] private static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); LauncherFuncs.ReadInfoFile(GlobalPaths.ConfigDir + "\\" + GlobalVars.InfoName); LauncherFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalVars.ConfigName, false); if (args.Length == 0) { switch (GlobalVars.UserConfiguration.LauncherStyle) { case Settings.UIOptions.Style.Compact: Application.Run(new LauncherFormCompact()); break; default: Application.Run(new LauncherFormExtended()); break; } } else { foreach (string s in args) { GlobalVars.SharedArgs = ProcessInput(s); } if (GlobalVars.SharedArgs.Equals("-sdk")) { Application.Run(new NovetusSDK()); } } } } }