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 276 by rossy, Wed Mar 18 07:48:30 2009 UTC vs.
Revision 297 by rossy, Fri Apr 17 13:31:04 2009 UTC

# Line 5 | Line 5
5   #include "Oni.h"
6   #include "BFW_Utility.h"
7  
8 + #include "oni_gl.h"
9 + #include "daodan_gl.h"
10 +
11   HMODULE DDrDLLModule;
12   HMODULE DDrONiModule;
13  
# Line 41 | Line 44 | bool DDrPatch_Init()
44          // Sets the fadetime to 4800 by default
45          DDrPatch_Int16 (OniExe + 0x0011ab0e, 0x12c0);
46          
47 +        // Patch for alt-tab and the start menu
48 +        DDrPatch_Byte  (OniExe + 0x00026010, 0xC3);
49 +        
50          // Hackish fix for Konoko not kicking guns
51   //      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 };
52   //      DDrPatch_Const (OniExe + 0x000dc420, kickgun_patch);
# Line 62 | Line 68 | void __cdecl DDrMain(int argc, char* arg
68          // Safe startup message printer
69          DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage);
70          
71 <        // Test performance patch
71 >        // Daodan device mode enumeration function
72 >        DDrPatch_MakeJump(gl_enumerate_valid_display_modes, daodan_enumerate_valid_display_modes);
73 >        
74 >        // Performance patch
75          DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High);
76          DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency);
77          DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths);

Diff Legend

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