-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (36 loc) · 881 Bytes
/
Copy pathProgram.cs
File metadata and controls
38 lines (36 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Windows.Forms;
namespace GameDbManagerMega
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main(string[] param)
{
if (param.Length >= 1)
{
if (param[0].Equals("-scanroms", StringComparison.CurrentCultureIgnoreCase))
{
GameDBMgr.DoScanWithoutUI(param[1]);
}
else if (param[0].Equals("-convertimg", StringComparison.CurrentCultureIgnoreCase))
{
GameDBMgr.ConvertImages();
}
else
{
Console.WriteLine("Command Line usage:");
Console.WriteLine();
Console.WriteLine("GameDbManager [-scanroms directory_name|-convertimg]");
}
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new GameDBMgr());
}
}
}