adding memory hacks to mo3ad001 menu base
how do i add meonery hacks to this base i found out how to do it on other base but i can find out how to do it on this base plz help me!!
void cHack::PatchASM(bool MenuVal, int iAddress, char chCodeOn[], char chCodeOff[], int iLength, bool &zsFlag)
{
if(MenuVal)
{
if(zsFlag)
{
memcpy((void*)iAddress,(void*)(char*)chCodeOn, iLength);
zsFlag = false;
}
}
else if(zsFlag == false)
{
memcpy((void*)iAddress,(void*)(char*)chCodeOff, iLength);
zsFlag = true;
}
}
Hack.PatchASM(Menu.CheckBox[1][1].State, iRapidFire, chRapidFireOn, chRapidFireOff, iRapidFireLength, Hack.Flag.Flag[i++]);
if you need help with simple stuff like this you should go and learn the basics!