ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan.c
(Generate patch)

Comparing Daodan/src/Daodan.c (file contents):
Revision 275 by rossy, Wed Mar 18 07:14:58 2009 UTC vs.
Revision 276 by rossy, Wed Mar 18 07:48:30 2009 UTC

# Line 42 | Line 42 | bool DDrPatch_Init()
42          DDrPatch_Int16 (OniExe + 0x0011ab0e, 0x12c0);
43          
44          // Hackish fix for Konoko not kicking guns
45 <        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 };
46 <        DDrPatch_Const (OniExe + 0x000dc420, kickgun_patch);
45 > //      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 };
46 > //      DDrPatch_Const (OniExe + 0x000dc420, kickgun_patch);
47          
48          // Cooldown timer exploit fix ^_^
49          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 };
# Line 65 | Line 65 | void __cdecl DDrMain(int argc, char* arg
65          // Test performance patch
66          DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High);
67          DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency);
68 +        DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths);
69          
70          ONiMain(argc, argv);
71   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)