Ejemplo n.º 1
0
inline static int CheckSleep(int)
{
	if (SekGetPC(-1) >= 0x94BC && SekGetPC(-1) <= 0x94D0) {
		return 1;
	} else {
		return 0;
	}
}
Ejemplo n.º 2
0
inline static int CheckSleep(int)
{
#if 1 && defined USE_SPEEDHACKS
	int nCurrentPC = SekGetPC(-1);

	// All versions are the same
	if (!nIRQPending && nCurrentPC >= 0x002ED6 && nCurrentPC <= 0x002EE2) {
		return 1;
	}
#endif

	return 0;
}
Ejemplo n.º 3
0
static inline int CheckSleep(int)
{
#if 1 && defined USE_SPEEDHACKS
	int nCurrentPC = SekGetPC(-1);

	if (!nIRQPending &&
		((nCurrentPC >= 0x0009F4 && nCurrentPC <= 0x0009FA) ||
		 (nCurrentPC >= 0x001FF6 && nCurrentPC <= 0x001FFC) ||
		 (nCurrentPC >= 0x003C7C && nCurrentPC <= 0x003C82)))
	{
		return 1;
	}
#endif

	return 0;
}
Ejemplo n.º 4
0
inline static int CheckSleep(int)
{
#if 1 && defined USE_SPEEDHACKS
	int nCurrentPC = SekGetPC(-1);

	if (!nIRQPending && nCurrentPC >= 0x0009AC && nCurrentPC <= 0x0009B8) {
		return 1;
	}

	nCurrentPC += nSpeedHackOffset;

	if (!nIRQPending &&
		((nCurrentPC >= 0x001F5E && nCurrentPC <= 0x001F64) ||
		 (nCurrentPC >= 0x003A1C && nCurrentPC <= 0x003A22)))
	{
		return 1;
	}
#endif

	return 0;
}