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.
This commit is contained in:
commit
80b71d295d
179 changed files with 52858 additions and 0 deletions
28
src/RynthCore.App.Avalonia/Program.cs
Normal file
28
src/RynthCore.App.Avalonia/Program.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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();
|
||||
}
|
||||
Loading…
Reference in a new issue