-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
33 lines (28 loc) · 781 Bytes
/
Program.cs
File metadata and controls
33 lines (28 loc) · 781 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
namespace OpenSC
{
static class Program
{
[STAThread]
private static void Main(string[] args)
{
Logger.Initialize(
logToConsole: true,
logToFile: true,
logFilePath: "./opensc.log"
);
SCEnvironment.ScratchesSrc = Unluac.DecompileLua51("./scratches.sc");
SCEnvironment.ScreamDef = Unluac.DecompileLua51("./scream.sc");
var window = new SCWindow();
var execParam = "newGameSDC";
try
{
window.Run(execParam);
}
catch (Exception ex)
{
Logger.LogError(ex.Message + Environment.NewLine + ex.StackTrace);
}
}
}
}