// // HookOptions.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace NosSmooth.LocalBinding.Hooks; /// /// A configuration for hooking a function. /// /// The name of the hook. /// Whether to hook the function. /// The memory pattern in hex. Use ?? for any bytes. /// The offset to find the function at. public record HookOptions ( string Name, bool Hook, string MemoryPattern, int Offset ); /// /// A configuration for hooking a function. /// /// The name of the hook. /// Whether to hook the function. /// The memory pattern in hex. Use ?? for any bytes. /// The offset to find the function at. public record HookOptions ( string Name, bool Hook, string MemoryPattern, int Offset ) : HookOptions(Name, Hook, MemoryPattern, Offset);