RynthCore/src/RynthCore.App.Avalonia/Program.cs
tombohar 80b71d295d Initial commit
A modern .NET 9 NativeAOT framework for Asheron's Call client modding.
Self-contained injection system that hooks D3D9 EndScene to render an
ImGui overlay inside the AC client process.
2026-04-10 18:38:07 -04:00

28 lines
738 B
C#

using System;
using Avalonia;
using Avalonia.Win32;
namespace RynthCore.App.Avalonia;
internal static class Program
{
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new Win32PlatformOptions
{
RenderingMode =
[
Win32RenderingMode.Software
],
CompositionMode =
[
Win32CompositionMode.RedirectionSurface
]
})
.WithInterFont()
.LogToTrace();
}