Bypass GameLoop Wait

From OPU Wiki

This code causes the GameLoop to not wait, which makes the game run at an extreme speed. Using this code in a multiplayer game is a VERY bad idea, as it could cause major desyncing.

// Superspeed!
unsigned char *jmpLoc = (unsigned char *)0x0049C374;

BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    DWORD oldAttr;
	if (fdwReason == DLL_PROCESS_ATTACH)
	{
		DisableThreadLibraryCalls(hinstDLL);

		// This sets the game loop to run really fast. Remove this in your final product.
		*jmpLoc = 0xEB;
	}
	else if (fdwReason == DLL_PROCESS_DETACH)
	{
		// This sets the game loop speed back to normal. Remove this in your final product.
		// DO NOT REMOVE THE FOLLOWING LINE IF THE SUPERSPEED CODE IS ENABLED.
		*jmpLoc = 0x73;
	}

    return TRUE;
}

Personal tools