Overlay upstream/main (9b5e276) onto BlankenshipG main without rewriting
history. Keep origin-only Decal/plugin/docs trees. Re-apply aelrynth.com
and sibling-fork URL fixes that aelrynth git still has as tombohar links.
Co-authored-by: BlankenshipG <BlankenshipG@users.noreply.github.com>
18 lines
495 B
C#
18 lines
495 B
C#
using RynthCore.HookManifest.Scanning;
|
|
using RynthCore.HookResolver.Core.Symbols;
|
|
|
|
namespace RynthCore.HookResolver.Core.Validation;
|
|
|
|
public readonly record struct ValidationContext(
|
|
AcClientImageView Image,
|
|
int CandidateRva,
|
|
int CandidateVa,
|
|
HookSymbol Symbol);
|
|
|
|
public readonly record struct ValidationOutcome(bool Passed, string RuleId, string Detail);
|
|
|
|
public interface IValidationRule
|
|
{
|
|
string RuleId { get; }
|
|
ValidationOutcome Evaluate(in ValidationContext ctx);
|
|
}
|