From 138171a06c082f4a1a1250bcf1ee86e422d42dd7 Mon Sep 17 00:00:00 2001 From: HTCheater <111248635+HTCheater@users.noreply.github.com> Date: Sun, 29 Jan 2023 21:20:51 +0300 Subject: [PATCH] Add files via upload --- Il2CppExplorer.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Il2CppExplorer.lua b/Il2CppExplorer.lua index 9c64c60..37d57bc 100644 --- a/Il2CppExplorer.lua +++ b/Il2CppExplorer.lua @@ -292,7 +292,7 @@ function explorer.getField(instance, offset, offsetX32, valueType) explorer.print("🔴 explorer.getField: offset for this architecture is not specified") return nil end - return explorer.readValue(instance.address + offset, type) + return explorer.readValue(instance.address + offset, valueType) end -- Edit field value in instance from instances table specified by index @@ -325,7 +325,7 @@ function explorer.editField(instance, offset, offsetX32, valueType, value) local t = {} t[1] = {} t[1].address = instance.address + offset - t[1].flags = type + t[1].flags = valueType t[1].value = value gg.setValues(t) end @@ -476,7 +476,7 @@ function explorer.readValue(addr, valueType) local t = {} t[1] = {} t[1].address = addr - t[1].flags = type + t[1].flags = valueType t = gg.getValues(t)