Matt_code_guy
New User
- 15
- 04/26/17
- 1
Thread Author
I had written some mods for a game, and as a result the developers started using IL2CPP. I am familiar with IL2CPP and how you go about modding it.
My question is if I know the implementation of the C# code, is there any way to inject it at the inspected offset.
let's say IL2CPPDumper reveals there's a method
and I know that the implementation is:
And I desire the implementation to be:
In this case I know the offsets, I know the current implementation and the desired implementation. Is there any way for me to convert my code to hex, and use a hex editor to insert it or am I limited to just changing values?
My question is if I know the implementation of the C# code, is there any way to inject it at the inspected offset.
let's say IL2CPPDumper reveals there's a method
Code:
// offset 0x12345678
public static void processSomeServerMessage() {
}
and I know that the implementation is:
Code:
// offset 0x12345678
public static void processSomeServerMessage(Message msg) {
msg.forEach(msg => {
//do something
}
}
And I desire the implementation to be:
Code:
// offset 0x12345678
public static void processSomeServerMessage(Message msg) {
ChatSingleton.addLine('some message');
msg.forEach(msg => {
//do something
}
}
In this case I know the offsets, I know the current implementation and the desired implementation. Is there any way for me to convert my code to hex, and use a hex editor to insert it or am I limited to just changing values?