From 1ae7de26bf03d12bf8e653f74c2f574f7dcecf03 Mon Sep 17 00:00:00 2001
From: Ottermandias <70807659+Ottermandias@users.noreply.github.com>
Date: Tue, 7 Oct 2025 18:40:44 +0200
Subject: [PATCH] Fix issue in SigScanner. (#2425)
---
Dalamud/Game/SigScanner.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Dalamud/Game/SigScanner.cs b/Dalamud/Game/SigScanner.cs
index 67f4f563e..c8a371aee 100644
--- a/Dalamud/Game/SigScanner.cs
+++ b/Dalamud/Game/SigScanner.cs
@@ -326,7 +326,7 @@ public class SigScanner : IDisposable, ISigScanner
}
///
- public nint[] ScanAllText(string signature) => this.ScanAllText(signature, default).ToArray();
+ public nint[] ScanAllText(string signature) => this.ScanAllText(signature, CancellationToken.None).ToArray();
///
public IEnumerable ScanAllText(string signature, CancellationToken cancellationToken)
@@ -338,7 +338,7 @@ public class SigScanner : IDisposable, ISigScanner
{
cancellationToken.ThrowIfCancellationRequested();
- var index = IndexOf(mBase, this.TextSectionSize, needle, mask, badShift);
+ var index = IndexOf(mBase, this.TextSectionSize - (int)(mBase - this.TextSectionBase), needle, mask, badShift);
if (index < 0)
break;