vfsfitvnm / frida-il2cpp-bridge

A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.

Home Page:https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I replace a function with a parameter that has an out flag?

zglonfee opened this issue · comments

C# code

private void FindTargetItemOrFillingCell(Royal.Scenes.Game.Mechanics.Board.Cell.CellModel cell, [Out] Royal.Scenes.Game.Mechanics.Board.Cell.FillingCellModel fillingCell)

ts code

    cls.method("FindTargetItemOrFillingCell").implementation = function(cell : Il2Cpp.Object, fillingCell : Il2Cpp.Object){
        this.method("FindTargetItemOrFillingCell").invoke(cell, fillingCell)
        console.log("FindTargetItemOrFillingCell : " + cell)
    }

And i get an error msg when fillingCell is not null:

Error: access violation accessing 0xaf96a9027bf3
    at callback (/node_modules/frida-il2cpp-bridge/dist/index.js:1309

please help me, thanks