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
38
src/RynthCore.Injector/InjectionResult.cs
Normal file
38
src/RynthCore.Injector/InjectionResult.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
|
||||
namespace RynthCore.Injector;
|
||||
|
||||
public sealed class InjectionResult
|
||||
{
|
||||
public bool Success { get; init; }
|
||||
public int ExitCode { get; init; }
|
||||
public string Summary { get; init; } = string.Empty;
|
||||
public string EnginePath { get; init; } = string.Empty;
|
||||
public int? ProcessId { get; init; }
|
||||
public uint? InitResult { get; init; }
|
||||
|
||||
public static InjectionResult Failure(int exitCode, string summary, string enginePath = "", int? processId = null)
|
||||
{
|
||||
return new InjectionResult
|
||||
{
|
||||
Success = false,
|
||||
ExitCode = exitCode,
|
||||
Summary = summary,
|
||||
EnginePath = enginePath,
|
||||
ProcessId = processId
|
||||
};
|
||||
}
|
||||
|
||||
public static InjectionResult SuccessResult(string summary, string enginePath, int processId, uint initResult)
|
||||
{
|
||||
return new InjectionResult
|
||||
{
|
||||
Success = true,
|
||||
ExitCode = 0,
|
||||
Summary = summary,
|
||||
EnginePath = enginePath,
|
||||
ProcessId = processId,
|
||||
InitResult = initResult
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue