diff --git a/docs/lua-api.md b/docs/lua-api.md index 4c9a8c3..bb4ee45 100644 --- a/docs/lua-api.md +++ b/docs/lua-api.md @@ -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). | diff --git a/src/core/scripting/libraries/Memory.cpp b/src/core/scripting/libraries/Memory.cpp index 79e0db3..a657362 100644 --- a/src/core/scripting/libraries/Memory.cpp +++ b/src/core/scripting/libraries/Memory.cpp @@ -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);