mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
fix(memory): ScanPattern looking for wrong process (#963)
This commit is contained in:
+1
-1
@@ -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). |
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user