diff --git a/README.md b/README.md index 7462dc1..484560d 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,31 @@ However, only Android and Linux are tested: expect breakage if you are using ano ## Changelog +### 0.7.10 +- Add `Il2Cpp.Reference::to` to easily create a `Il2Cpp.Reference`: + ```ts + Il2Cpp.perform(() => { + const TryParse = Il2Cpp.Image.corlib.class("System.Boolean").method("TryParse"); + + const value = Il2Cpp.Reference.to(false); + + console.log(value); // ->false + TryParse.invoke(Il2Cpp.String.from("TrUe"), value); + console.log(value); // ->true + }); + ``` + A `Il2Cpp.Type` is required when creating a reference to a `number` or `NativePointer` in order to disambiguate their representation: + ```ts + const value = Il2Cpp.Reference.to(1355, Il2Cpp.Image.corlib.class("System.UInt16").type); + ``` +- Make `Il2Cpp.Object::unbox` directly return a `Il2Cpp.ValueType`: + ```ts + // old + const valueType = new Il2Cpp.ValueType(object.unbox(), object.class.type); + // new + const valueType = object.unbox(); + ``` + ### 0.7.9 - Minor things. diff --git a/package.json b/package.json index 2e88c02..b2387e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "frida-il2cpp-bridge", - "version": "0.7.9", + "version": "0.7.10", "description": "A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.", "keywords": [ "frida",