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.
28 lines
738 B
C#
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();
|
|
}
|