Replies: 3 comments 1 reply
-
Hi, I don't really know why you are using low-level methods such as Il2Cpp.perform(() => {
const List = Il2Cpp.corlib.class("System.Collections.Generic.List`1");
const Int32List = List.inflate(Il2Cpp.corlib.class("System.Int32"));
const list = Int32List.new();
list.method("Add").invoke(1);
}); Alternatively, you must call const list = Il2Cpp.api.objectNew(Int32List);
Il2Cpp.api.objectInitialize(list, NULL);
Int32List.method("Add").invokeRaw(list, 1); |
Beta Was this translation helpful? Give feedback.
-
I get always "access violation at 0x01" with version 16.2.1 trying this, do you know why this happens? |
Beta Was this translation helpful? Give feedback.
-
That's doesn't work also. I think it treats 1 as address. Help us guys. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions