fix matching pattern

This commit is contained in:
DismissedLight
2024-07-17 10:44:19 +08:00
parent 6b03ccdacc
commit 6863cbb113
2 changed files with 2 additions and 3 deletions

View File

@@ -2,7 +2,6 @@
// Licensed under the MIT license.
using System.Numerics;
using System.Runtime.CompilerServices;
namespace Snap.Hutao.Extension;

View File

@@ -58,8 +58,8 @@ internal static class GameFpsAddress
private static int IndexOfPattern(in ReadOnlySpan<byte> span)
{
// B9 3C 00 00 00 FF 15
ReadOnlySpan<byte> part = [0xB9, 0x3C, 0x00, 0x00, 0x00, 0xFF, 0x15];
// B9 3C 00 00 00 E8
ReadOnlySpan<byte> part = [0xB9, 0x3C, 0x00, 0x00, 0x00, 0xE8];
return span.IndexOf(part);
}