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;
		}
	}
}
示例#2
0
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;
}
示例#3
0
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;
}