62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
/*
|
|
* 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.Windows.Forms;
|
|
|
|
namespace NovetusLauncher
|
|
{
|
|
/// <summary>
|
|
/// Class with program entry point.
|
|
/// </summary>
|
|
internal sealed class Program
|
|
{
|
|
static string ProcessInput(string s)
|
|
{
|
|
return s;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Program entry point.
|
|
/// </summary>
|
|
[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());
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|