Skip to content

Commit

Permalink
Bump version to 0.7.13
Browse files Browse the repository at this point in the history
  • Loading branch information
vfsfitvnm committed May 2, 2022
1 parent 6447739 commit b49a0c6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,40 @@ However, only Android and Linux are tested: expect breakage if you are using ano

## Changelog

### 0.7.12
- Add `Il2Cpp::sheduleOnInitializerThread2`. The old `sheduleOnInitializerThread` is now `Il2Cpp::sheduleOnInitializerThread2`, and the new `Il2Cpp::sheduleOnInitializerThread` is a brand new implementation.
### 0.7.13
- Add `Il2Cpp.Thread::schedule` to schedule a delayed callback:
```ts
Il2Cpp.perform(() => {
const Class: Il2Cpp.Class = ...;

Class.method("MethodName").implementation = function () {
// we probably are on the "main" thread now

// non blocking
Il2Cpp.currentThread?.schedule(() => {
// we are on the same thread!
}, 1000);

return this..method("MethodName").invoke();
};
});
```
Of course, it can be used to schedule a callback on a specific thread (see version `0.7.6` release notes). Sometimes, you could face an access violation/abort error when trying to invoke a Il2Cpp function within the wrong thread.
```ts
Il2Cpp.perform(() => {
const Method: Il2Cpp.Method = ...;

// access violation :(
Method.invoke();

Il2Cpp.attachedThreads[0].schedule(() => {
// works :)
Method.invoke();
});
});
```
**Note**: `Il2Cpp.Thread::schedule` similar to `Il2Cpp::scheduleOnInitializerThread`. However, they use different approaches. Eventually, one of them will be removed. \
**Note**: `Il2Cpp.Thread::schedule` may not work with old Unity versions.

### 0.7.11
- Fix #171.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frida-il2cpp-bridge",
"version": "0.7.12",
"version": "0.7.13",
"description": "A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.",
"keywords": [
"frida",
Expand Down

0 comments on commit b49a0c6

Please sign in to comment.