I'm messing with neverwinter nights, I created a script on a HW breakpoint (in the callback spot), that changes some values. Everything works as expected.. but since there are only 4 HW breakpoints, I switched them to software breakpoints instead.
But for some reason that doesn't work, the scripts aren't executed... Is this caused by the game figuring out that I'm messing with it ? Any ideas how I can see what is going on ?
I'm only doing the following (nothing too fancy):
- Code: Select all
VOID On_BP_3( LPVOID lpvAddress, LPPROC_INFO_MHS lpProcInfo ) {
lpProcInfo->pcContext->Ebp |= 0x3E8;
lpProcInfo->bSetContext = TRUE;
//PrintF( "Breakpoint hit at 0x%08X.", (DWORD)lpvAddress);
}
oh and one more question, is it possible to save breakpoints in between sessions ? I see a loading function in the menu, but nothing to save them...