SigScanner ctor overload for main module of current process

This commit is contained in:
Raymond 2021-08-16 08:59:07 -04:00
parent 7fa5e7adbe
commit b3f41c9049

View file

@ -17,6 +17,15 @@ namespace Dalamud.Game
private IntPtr moduleCopyPtr;
private long moduleCopyOffset;
/// <summary>
/// Initializes a new instance of the <see cref="SigScanner"/> class using the main module of the current process.
/// </summary>
/// <param name="doCopy">Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks.</param>
public SigScanner(bool doCopy = false)
: this(Process.GetCurrentProcess().MainModule!, doCopy)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="SigScanner"/> class.
/// </summary>