roflmao1337
Platinian
Hello,
I have used a Il2CppDumper to create those files out of an apk.
Inspecting the .dll with dnSpy and the dump with Notepad++, they are both pretty much the same, apart from the way the code is written.
I have an understanding question because I want to modify a function.
the dump file has a function
// RVA: 0xBEFEDC Offset: 0xBEFEDC VA: 0xBEFEDC
public int get_gold() { }
// RVA: 0xBEFEE4 Offset: 0xBEFEE4 VA: 0xBEFEE4
public void set_gold(int value) { }
in the Assembly-CSharp.dll the same function reads:
// Token: 0x1700082E RID: 2094
// (get) Token: 0x06001140 RID: 4416 RVA: 0x0000A638 File Offset: 0x00008838
// (set) Token: 0x06001141 RID: 4417 RVA: 0x00002050 File Offset: 0x00000250
[Attribute(Name = "ProtoMemberAttribute", RVA = "0x68D2B0", Offset = "0x68D2B0")]
[Attribute(Name = "DefaultValueAttribute", RVA = "0x68D2B0", Offset = "0x68D2B0")]
public int gold
{
[Address(RVA = "0xBEFEDC", Offset = "0xBEFEDC", VA = "0xBEFEDC")]
get
{
return 0;
}
[Address(RVA = "0xBEFEE4", Offset = "0xBEFEE4", VA = "0xBEFEE4")]
set
{
}
}
Basically I want to modify the setter function to public void set_gold(9999) { }
How would I do that in the Hex editor of libil2cpp.so ?
And also can somebody maybe tell me what is purple and green stuff of the Assembly-CSharp.dll which is not in the dump file?
Thanks in advance!
I have used a Il2CppDumper to create those files out of an apk.
Inspecting the .dll with dnSpy and the dump with Notepad++, they are both pretty much the same, apart from the way the code is written.
I have an understanding question because I want to modify a function.
the dump file has a function
// RVA: 0xBEFEDC Offset: 0xBEFEDC VA: 0xBEFEDC
public int get_gold() { }
// RVA: 0xBEFEE4 Offset: 0xBEFEE4 VA: 0xBEFEE4
public void set_gold(int value) { }
in the Assembly-CSharp.dll the same function reads:
// Token: 0x1700082E RID: 2094
// (get) Token: 0x06001140 RID: 4416 RVA: 0x0000A638 File Offset: 0x00008838
// (set) Token: 0x06001141 RID: 4417 RVA: 0x00002050 File Offset: 0x00000250
[Attribute(Name = "ProtoMemberAttribute", RVA = "0x68D2B0", Offset = "0x68D2B0")]
[Attribute(Name = "DefaultValueAttribute", RVA = "0x68D2B0", Offset = "0x68D2B0")]
public int gold
{
[Address(RVA = "0xBEFEDC", Offset = "0xBEFEDC", VA = "0xBEFEDC")]
get
{
return 0;
}
[Address(RVA = "0xBEFEE4", Offset = "0xBEFEE4", VA = "0xBEFEE4")]
set
{
}
}
Basically I want to modify the setter function to public void set_gold(9999) { }
How would I do that in the Hex editor of libil2cpp.so ?
And also can somebody maybe tell me what is purple and green stuff of the Assembly-CSharp.dll which is not in the dump file?
Thanks in advance!