| 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 |
|
|
| 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); |
| 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); |