-
I am trying to use the BestHTTP library with this example code, but it requires passing in a function as a callback The constructor method and the callback class look like this: Here is my current code: const System = Il2Cpp.domain.assembly("System").image
const Game = Il2Cpp.domain.assembly("Assembly-CSharp").image
/* ... */
const uri = System.class("System.Uri").alloc()
uri.method(".ctor").invoke(Il2Cpp.string("https://google.com"))
const req = Game.class("BestHTTP.HTTPRequest").alloc()
req.method(".ctor").overload("System.Uri", "BestHTTP.OnRequestFinishedDelegate").invoke(uri, /* ??? */)
req.method("Send").invoke() Sending a request without the overload and callback worked for me, but I need some kind of way to wait until a response is given and using the callback looks the most effective |
Beta Was this translation helpful? Give feedback.
Answered by
vfsfitvnm
Jan 16, 2024
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LaptopCat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Il2Cpp::delegate
: https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki/Changelog#v080