fix(memory): ScanPattern looking for wrong process (#963)

This commit is contained in:
lmagineNothing
2026-07-11 10:18:33 -05:00
committed by GitHub
parent 628f2fdc9f
commit ef1a4df216
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ Pattern scanning and heap allocation. Returns [pointer](#pointer) objects.
| Function | Description |
| --- | --- |
| `memory.scan_pattern(pattern) -> pointer \| nil` | Scans `GTA5.exe` for an IDA-format byte signature. |
| `memory.scan_pattern(pattern) -> pointer \| nil` | Scans `GTA5_Enhanced.exe` for an IDA-format byte signature. |
| `memory.handle_to_ptr(entity) -> pointer` | Resolves an entity handle to its game pointer. |
| `memory.ptr_to_handle(ptr) -> integer` | Resolves a game pointer back to an entity handle. |
| `memory.allocate(size) -> pointer` | Allocates `size` zeroed bytes (auto-freed on unload). |
+1 -1
View File
@@ -52,7 +52,7 @@ namespace YimMenu::Lua
static int ScanPattern(lua_State* state)
{
auto sig = CheckStringSafe(state, 1);
auto* gta5 = ModuleMgr.Get("GTA5.exe"_J);
auto* gta5 = ModuleMgr.Get("GTA5_Enhanced.exe"_J);
if (!gta5)
{
lua_pushnil(state);