- Timestamp:
 - Mar 18, 2009, 8:14:58 AM (17 years ago)
 - Location:
 - Daodan
 - Files:
 - 
      
- 8 edited
 
- 
          
  build.bat (modified) (1 diff)
 - 
          
  build/binkw32.dll (modified) ( previous)
 - 
          
  src/BFW_Utility.h (modified) (1 diff)
 - 
          
  src/Daodan.c (modified) (1 diff)
 - 
          
  src/Daodan_DLLStubs.c (modified) (1 diff)
 - 
          
  src/Daodan_Utility.c (modified) (2 diffs)
 - 
          
  src/Daodan_Utility.h (modified) (1 diff)
 - 
          
  src/Oni_Symbols.S (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
Daodan/build.bat
r271 r275 1 gcc -O3 -s -Wall -shared - o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c1 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  - 
      
Daodan/src/BFW_Utility.h
r272 r275 4 4 5 5 #include <stdio.h> 6 #include <stdint.h> 7 #include "Daodan.h" 6 8 7 9 void __cdecl UUrStartupMessage(const char* fmt, ...); 10 int64_t ONICALL UUrMachineTime_High(); 11 double ONICALL UUrMachineTime_High_Frequency(); 8 12 9 13 extern FILE* ONgFileStartup;  - 
      
Daodan/src/Daodan.c
r274 r275 63 63 DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage); 64 64 65 // Test performance patch 66 DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High); 67 DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency); 68 65 69 ONiMain(argc, argv); 66 70 }  - 
      
Daodan/src/Daodan_DLLStubs.c
r272 r275 1 1 2 __declspec(dllexport) void VTPauseSampling() {return;}3 __declspec(dllexport) void VTResumeSampling() {return;}2 __declspec(dllexport) void __cdecl VTPauseSampling() {return;} 3 __declspec(dllexport) void __cdecl VTResumeSampling() {return;} 4 4 5 5 __declspec(dllexport) int __stdcall _BinkBufferClose(int arg1) {return 0;}  - 
      
Daodan/src/Daodan_Utility.c
r272 r275 1 #include <windows.h> 1 2 #include <stdlib.h> 2 3 #include <stdarg.h> 4 #include <stdint.h> 3 5 #include "oni_stdio.h" 4 6 … … 25 27 return; 26 28 } 29 30 int64_t DDrMachineTime_High() 31 { 32 // LARGE_INTEGER PerfCount; 33 // 34 // if (!QueryPerformanceCounter(&PerfCount)) 35 // PerfCount.QuadPart = GetTickCount(); 36 // 37 // return PerfCount.QuadPart; 38 return GetTickCount(); 39 } 40 41 double DDrMachineTime_High_Frequency() 42 { 43 // LARGE_INTEGER Frequency; 44 // 45 // if (!QueryPerformanceFrequency(&Frequency)) 46 return 1000.0; 47 48 // return Frequency.QuadPart; 49 }  - 
      
Daodan/src/Daodan_Utility.h
r272 r275 3 3 #define DAODAN_UTILITY_H 4 4 5 #include <stdint.h> 6 #include "Daodan.h" 7 5 8 void __cdecl DDrStartupMessage(const char* fmt, ...); 9 int64_t ONICALL DDrMachineTime_High(); 10 double ONICALL DDrMachineTime_High_Frequency(); 6 11 7 12 #endif  - 
      
Daodan/src/Oni_Symbols.S
r274 r275 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 ( _ONgFileStartup , 0x001711b8 ) 16 symbol ( _UUrStartupMessage , 0x00024860 ) 17 symbol ( @UUrMachineTime_High@0 , 0x00026480 ) 18 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 ) 19 symbol ( _ONgFileStartup , 0x001711b8 )  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  