1
0
Fork 0
mirror of https://github.com/oMaN-Rod/nxDumpFuse.git synced 2024-12-08 01:32:07 +00:00
nxDumpFuse/src/nxDumpFuse/Program.cs
2021-10-21 22:22:45 -04:00

34 lines
1.1 KiB
C#

using Avalonia;
using Avalonia.ReactiveUI;
using System;
using nxDumpFuse.DependencyInjection;
using Splat;
namespace nxDumpFuse
{
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
public static void Main(string[] args)
{
RegisterDependencies();
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
private static void RegisterDependencies() => Bootstrapper.Register(Locator.CurrentMutable, Locator.Current);
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new SkiaOptions { MaxGpuResourceSizeBytes = 8096000 })
.With(new Win32PlatformOptions { AllowEglInitialization = true })
.LogToTrace()
.UseReactiveUI();
}
}