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 322 by rossy, Fri May 15 11:45:19 2009 UTC vs.
Revision 329 by rossy, Wed Jun 3 12:12:21 2009 UTC

# Line 1 | Line 1
1   #include "Daodan.h"
2   #include "Daodan_Patch.h"
3   #include "Daodan_Utility.h"
4 + #include "Daodan_Win32.h"
5  
6   #include "Oni.h"
7   #include "BFW_Utility.h"
# Line 63 | Line 64 | bool DDrPatch_Init()
64          // Unlocks particle action disabling/enabling bits for all events. (Will be controlled by a command line switch when I figure out how to do that without Win32 hacks.)
65          //DDrPatch_Int16 (OniExe + 0x001b184, 0x9090);
66          
67 +        // Multi-byte patch (multiple language support)
68 +        DDrPatch_Byte  (OniExe + 0x0002d8f8, 0xeb);
69 +        DDrPatch_Byte  (OniExe + 0x0002d9ad, 0xeb);
70 +        DDrPatch_Byte  (OniExe + 0x0002dbe2, 0xeb);
71 +        DDrPatch_Byte  (OniExe + 0x0002dec3, 0xeb);
72 +        DDrPatch_Byte  (OniExe + 0x0002e2ab, 0xeb);
73 +        DDrPatch_Byte  (OniExe + 0x0002e2c4, 0xeb);
74 +        DDrPatch_Byte  (OniExe + 0x0002e379, 0xeb);
75 +        DDrPatch_Byte  (OniExe + 0x0002e48c, 0xeb);
76 +        DDrPatch_Byte  (OniExe + 0x0002e4d0, 0xeb);
77 +        DDrPatch_Byte  (OniExe + 0x0002e4f4, 0xeb);
78 +        DDrPatch_Byte  (OniExe + 0x0002e646, 0xeb);
79 +        DDrPatch_Byte  (OniExe + 0x0002e695, 0xeb);
80 +        DDrPatch_Byte  (OniExe + 0x0002e944, 0xeb);
81 +        DDrPatch_Byte  (OniExe + 0x0002e95d, 0xeb);
82 +        DDrPatch_Byte  (OniExe + 0x0002e98e, 0xeb);
83 +        DDrPatch_Byte  (OniExe + 0x0002e9dc, 0xeb);
84 +        
85          return true;
86   }
87  
# Line 81 | Line 100 | void __cdecl DDrMain(int argc, char* arg
100          DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency);
101          DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths);
102          
103 +        // Windowed mode
104 + //      DDrPatch_MakeJump(ONrPlatform_Initialize, DDrPlatform_Initialize);
105 + //      DDrPatch_MakeJump(gl_platform_initialize, daodangl_platform_initialize);
106 +        
107 + //      init_daodan_gl();
108 +        
109          ONiMain(argc, argv);
110   }
111  

Diff Legend

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