void RemoveWatch(const AddressWatcher &watch, int ignoreIndex) { for (int i = 0; i < WatchCount; i++) { if (i == ignoreIndex) continue; if (IsSameWatch(rswatches[i],watch)) { RemoveWatch(i); break; } } }
bool VerifyWatchNotAlreadyAdded(const AddressWatcher& watch) { for (int j = 0; j < WatchCount; j++) { if (IsSameWatch(rswatches[j], watch)) { if(RamWatchHWnd) SetForegroundWindow(RamWatchHWnd); return false; } } return true; }
int VerifyWatchNotAlreadyAdded(const struct AddressWatcher *watch) { int j; for (j = 0; j < WatchCount; j++) { if (IsSameWatch(&rswatches[j], watch)) { if(RamWatchHWnd) SetForegroundWindow(RamWatchHWnd); return 0; } } return 1; }