Changeset 276
- Timestamp:
- Mar 18, 2009, 8:48:30 AM (16 years ago)
- Location:
- Daodan
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/BFW_Utility.h
r275 r276 10 10 int64_t ONICALL UUrMachineTime_High(); 11 11 double ONICALL UUrMachineTime_High_Frequency(); 12 int64_t ONICALL UUrMachineTime_Sixtieths(); 12 13 13 14 extern FILE* ONgFileStartup; -
Daodan/src/Daodan.c
r275 r276 43 43 44 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 47 48 48 // Cooldown timer exploit fix ^_^ … … 66 66 DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High); 67 67 DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency); 68 DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths); 68 69 69 70 ONiMain(argc, argv); -
Daodan/src/Daodan_Utility.c
r275 r276 28 28 } 29 29 30 int64_t DDrMachineTime_Sixtieths() 31 { 32 static int64_t LastTime, Time; 33 int64_t Current; 34 35 Current = LastTime + GetTickCount(); 36 37 if (Current > Time) 38 { 39 LastTime += 1; 40 Current += 1; 41 } 42 43 Time = Current; 44 45 return (Time * 3) / 50; 46 } 47 30 48 int64_t DDrMachineTime_High() 31 49 { -
Daodan/src/Daodan_Utility.h
r275 r276 9 9 int64_t ONICALL DDrMachineTime_High(); 10 10 double ONICALL DDrMachineTime_High_Frequency(); 11 int64_t ONICALL DDrMachineTime_Sixtieths(); 11 12 12 13 #endif -
Daodan/src/Oni_Symbols.S
r275 r276 17 17 symbol ( @UUrMachineTime_High@0 , 0x00026480 ) 18 18 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 ) 19 symbol ( @UUrMachineTime_Sixtieths@0 , 0x000263e0 ) 19 20 symbol ( _ONgFileStartup , 0x001711b8 )
Note:
See TracChangeset
for help on using the changeset viewer.