Skip to content

Conversation

@rubenvereecken
Copy link
Contributor

Figured might as well.

Should close #602.

* ```
*/
export function dumpTree(path?: string, ignoreAlreadyExistingDirectory: boolean = false): void {
if (path && !path?.startsWith("/")) path = `${Il2Cpp.application.dataPath!}/${path}`;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this is this not cross platform...

@vfsfitvnm
Copy link
Owner

Hi, #605 has been implemented, please read: https://github.com/vfsfitvnm/frida-il2cpp-bridge/blob/d624db6f016a0a3f6ff9de7a7113ba743a34727e/README.md#dumping.

I believe the new way of dumping is much better as have the most flexibility possible and opens up new features :)

@vfsfitvnm vfsfitvnm force-pushed the master branch 2 times, most recently from 00e222b to 06c6284 Compare May 1, 2025 20:59
@namtacs
Copy link

namtacs commented May 2, 2025

I think the dumping function should be left for use in a custom agent for when additional things are needed for compatibility with an app.

@vfsfitvnm
Copy link
Owner

@namtacs would you elaborate? What do you mean with "additional things are needed for compatibility with an app"?

@namtacs
Copy link

namtacs commented Jun 11, 2025

additional things are needed for compatibility with an app

For example, replacing the IL2CPP exports.
The new dumping method requires modifying the dump agent instead of modifying your own code. So it is in a way less flexible than a method.

@vfsfitvnm
Copy link
Owner

additional things are needed for compatibility with an app

For example, replacing the IL2CPP exports. The new dumping method requires modifying the dump agent instead of modifying your own code. So it is in a way less flexible than a method.

My bad for not documenting it, but you can use --script-prelude to execute some custom JS:

group.add_argument(
"--script-prelude",
required=False,
type=Path,
help="path to .js script to be executed before running command-specific code",
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing a path to Il2Cpp.dumpTree() crashes app

3 participants