mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-11 09:48:08 +08:00
feat: add script patches
This commit is contained in:
1 parent
af7eb42681
commit
b13352897e
12 files changed
+528
No files matched your search
@@ -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.";
|
||||
|
||||
Reference in new issue
Block a user