feat: add script patches

This commit is contained in:
maybegreat48 committed 2025-03-25 22:02:41 -04:00
1 parent af7eb42681
commit b13352897e
12 files changed
+528

No files matched your search

+5
View File
@@ -202,6 +202,11 @@ namespace YimMenu
SigScanMemory = ptr.Add(4).Add(3).Rip().As<PVOID>();
});
constexpr auto scriptVMPtrn = Pattern<"49 63 41 1C">("ScriptVM");
scanner.Add(scriptVMPtrn, [this](PointerCalculator ptr) {
ScriptVM = ptr.Sub(0x24).As<PVOID>();
});
if (!scanner.Scan())
{
LOG(FATAL) << "Some patterns could not be found, unloading.";