fixed DisablingMapHack
Code:
private void DisableMaphack()
{
int addr = m.AddressOfProcess + m.offsets.MaphackFunc;
if (m.ReadByte(addr) != 0x51)
{
Console.WriteLine("Something is wrong with maphackfunc");
}
else
{
for (; (int)m.ReadByte(addr) != 0xC3; ++addr)
{
if (m.ReadByte(addr) == 0xD9 && m.ReadByte(addr + 1) == 0xE8)
m.WriteBytes(addr + 1, 0x00);
}
Console.WriteLine("Maphack removed");
}
}
i use this function from Memory.cs
Code:
public void WriteBytes(int addr, params byte[] bytes)
{
WriteMem(addr, bytes);
}