-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
44 lines (41 loc) · 1.18 KB
/
Program.cs
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
39
40
41
42
43
44
using System;
using Galdr;
using Scum_Bag.Commands;
using Scum_Bag.Services;
namespace Scum_Bag;
internal class Program
{
[STAThread]
static void Main()
{
Config config = new();
using LoggingService loggingService = new(config);
try
{
using Galdr.Galdr galdr = new GaldrBuilder()
.SetTitle("Scum Bag - Save Manager")
.SetSize(1100, 775)
.SetMinSize(800, 600)
.AddSingleton(config)
.AddSingleton(loggingService)
.AddSingleton<SaveGameCommands>()
.AddSingleton<SettingsCommands>()
.AddSingleton<BackupService>()
.AddSingleton<GameService>()
.AddSingleton<SaveService>()
.AddSingleton<ScreenshotService>()
.AddSingleton<SettingsService>()
.AddSingleton<FileService>()
#if DEBUG
.SetDebug(true)
.SetPort(1314)
#endif
.Build()
.Run();
}
catch (Exception e)
{
loggingService.LogError($"{nameof(Program)}>{nameof(Main)} - {e}");
}
}
}