-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
24 lines (20 loc) · 820 Bytes
/
Program.cs
File metadata and controls
24 lines (20 loc) · 820 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
using System.Runtime.Versioning;
using AudioIntegrityChecker.Core;
using AudioIntegrityChecker.UI;
[assembly: SupportedOSPlatform("windows")]
internal static class Program
{
[STAThread]
static void Main()
{
ApplicationConfiguration.Initialize();
// Configure the native library resolver before any P/Invoke fires, so
// user-configured paths for libFLAC.dll and mpg123.dll are honoured.
// Availability of each library is checked lazily at Start scan time
// against the queued file formats — the app always launches so the
// user can configure paths from File > Options > Libraries.
var prefs = UserPreferences.Load();
NativeLibraryLoader.Configure(prefs.LibFlacPath, prefs.Mpg123Path);
Application.Run(new MainForm());
}
}