--- Daodan/src/Daodan.c 2009/03/17 12:12:24 274 +++ Daodan/src/Daodan.c 2009/03/18 07:48:30 276 @@ -42,8 +42,8 @@ bool DDrPatch_Init() DDrPatch_Int16 (OniExe + 0x0011ab0e, 0x12c0); // Hackish fix for Konoko not kicking guns - const char kickgun_patch[] = { 0x00, 0x05, 0x00, 0x00, 0x00, 0xC7, 0x05, 0x1C, 0xC9, 0x5E, 0x00, 0x70, 0xB8, 0x43, 0x00, 0xC7, 0x05, 0x20, 0xC9, 0x5E, 0x00, 0x20, 0xBE, 0x43 }; - DDrPatch_Const (OniExe + 0x000dc420, kickgun_patch); +// const char kickgun_patch[] = { 0x00, 0x05, 0x00, 0x00, 0x00, 0xC7, 0x05, 0x1C, 0xC9, 0x5E, 0x00, 0x70, 0xB8, 0x43, 0x00, 0xC7, 0x05, 0x20, 0xC9, 0x5E, 0x00, 0x20, 0xBE, 0x43 }; +// DDrPatch_Const (OniExe + 0x000dc420, kickgun_patch); // Cooldown timer exploit fix ^_^ const char cooldown_patch[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }; @@ -62,6 +62,11 @@ void __cdecl DDrMain(int argc, char* arg // Safe startup message printer DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage); + // Test performance patch + DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High); + DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency); + DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths); + ONiMain(argc, argv); }