From b3f41c904976a6b357361a68817b272369de5750 Mon Sep 17 00:00:00 2001 From: Raymond Date: Mon, 16 Aug 2021 08:59:07 -0400 Subject: [PATCH] SigScanner ctor overload for main module of current process --- Dalamud/Game/SigScanner.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dalamud/Game/SigScanner.cs b/Dalamud/Game/SigScanner.cs index 56d0003e3..285f845fe 100644 --- a/Dalamud/Game/SigScanner.cs +++ b/Dalamud/Game/SigScanner.cs @@ -17,6 +17,15 @@ namespace Dalamud.Game private IntPtr moduleCopyPtr; private long moduleCopyOffset; + /// + /// Initializes a new instance of the class using the main module of the current process. + /// + /// Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. + public SigScanner(bool doCopy = false) + : this(Process.GetCurrentProcess().MainModule!, doCopy) + { + } + /// /// Initializes a new instance of the class. ///