Changeset 297
- Timestamp:
- Apr 17, 2009, 3:31:04 PM (16 years ago)
- Location:
- Daodan
- Files:
-
- 6 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/build.bat
r275 r297 1 gcc -O3 -s -Wall -shared -fomit-frame-pointer -o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c 1 gcc -O3 -s -Wall -shared -fomit-frame-pointer -o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c src\daodan_gl.c -
Daodan/src/Daodan.c
r276 r297 5 5 #include "Oni.h" 6 6 #include "BFW_Utility.h" 7 8 #include "oni_gl.h" 9 #include "daodan_gl.h" 7 10 8 11 HMODULE DDrDLLModule; … … 42 45 DDrPatch_Int16 (OniExe + 0x0011ab0e, 0x12c0); 43 46 47 // Patch for alt-tab and the start menu 48 DDrPatch_Byte (OniExe + 0x00026010, 0xC3); 49 44 50 // Hackish fix for Konoko not kicking guns 45 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 }; … … 63 69 DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage); 64 70 65 // 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 66 75 DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High); 67 76 DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency); -
Daodan/src/Daodan_Utility.c
r276 r297 28 28 } 29 29 30 int64_t DDrMachineTime_Sixtieths()30 int64_t ONICALL DDrMachineTime_Sixtieths() 31 31 { 32 32 static int64_t LastTime, Time; … … 46 46 } 47 47 48 int64_t DDrMachineTime_High()48 int64_t ONICALL DDrMachineTime_High() 49 49 { 50 50 // LARGE_INTEGER PerfCount; … … 57 57 } 58 58 59 double DDrMachineTime_High_Frequency()59 double ONICALL DDrMachineTime_High_Frequency() 60 60 { 61 61 // LARGE_INTEGER Frequency; -
Daodan/src/Oni_Symbols.S
r276 r297 2 2 3 3 // MSVC6.0 stdlib 4 symbol ( _oni_malloc , 0x0011fc24 )5 symbol ( _oni_free , 0x0011fbf5 )4 symbol ( _oni_malloc , 0x0011fc24 ) 5 symbol ( _oni_free , 0x0011fbf5 ) 6 6 7 symbol ( _oni_fopen , 0x0011ea9f )8 symbol ( _oni_fflush , 0x0011eab2 )9 symbol ( _oni_fprintf , 0x0011ebbf )10 symbol ( _oni_vsprintf , 0x0011e860 )7 symbol ( _oni_fopen , 0x0011ea9f ) 8 symbol ( _oni_fflush , 0x0011eab2 ) 9 symbol ( _oni_fprintf , 0x0011ebbf ) 10 symbol ( _oni_vsprintf , 0x0011e860 ) 11 11 12 12 // Oni Engine 13 symbol ( _ONiMain , 0x000d3280 )13 symbol ( _ONiMain , 0x000d3280 ) 14 14 15 15 // BFW_Utility 16 symbol ( _UUrStartupMessage , 0x00024860 ) 17 symbol ( @UUrMachineTime_High@0 , 0x00026480 ) 18 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 ) 19 symbol ( @UUrMachineTime_Sixtieths@0 , 0x000263e0 ) 20 symbol ( _ONgFileStartup , 0x001711b8 ) 16 symbol ( _UUrStartupMessage , 0x00024860 ) 17 symbol ( @UUrMachineTime_High@0 , 0x00026480 ) 18 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 ) 19 symbol ( @UUrMachineTime_Sixtieths@0 , 0x000263e0 ) 20 symbol ( _ONgFileStartup , 0x001711b8 ) 21 22 // OpenGL 23 symbol ( @gl_enumerate_valid_display_modes@4 , 0x000083a0 )
Note:
See TracChangeset
for help on using the changeset viewer.