- Timestamp:
- Jun 6, 2009, 3:30:13 AM (15 years ago)
- Location:
- Daodan
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/build.bat
r323 r339 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_Win32.c src\ daodan_gl.c -lgdi321 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_Win32.c src\Daodan_Cheater.c src\Daodan_Persistence.c src\daodan_gl.c -lgdi32 -
Daodan/src/Daodan.c
r329 r339 3 3 #include "Daodan_Utility.h" 4 4 #include "Daodan_Win32.h" 5 #include "Daodan_Cheater.h" 6 #include "Daodan_Persistence.h" 5 7 6 8 #include "Oni.h" 9 #include "Oni_Persistence.h" 10 7 11 #include "BFW_Utility.h" 8 12 … … 83 87 DDrPatch_Byte (OniExe + 0x0002e9dc, 0xeb); 84 88 89 // Cheat table patch 90 DDrPatch_Int32 (OniExe + 0x000f616b, (int)&DDr_CheatTable[0].name); 91 DDrPatch_Int32 (OniExe + 0x000f617a, (int)&DDr_CheatTable[0].message_on); 92 85 93 return true; 86 94 } … … 100 108 DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency); 101 109 DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths); 110 111 // Cheats always enabled 112 DDrPatch_MakeJump(ONrPersist_GetWonGame, DDrPersist_GetWonGame); 102 113 103 114 // Windowed mode -
Daodan/src/Daodan_Persistence.c
r297 r339 1 #include "Daodan.h" 2 #include "Daodan_Persistence.h" 3 4 uint8_t ONICALL DDrPersist_GetWonGame() 5 { 6 return 1; 7 } -
Daodan/src/Daodan_Persistence.h
r297 r339 3 3 #define DAODAN_PERSISTENCE_H 4 4 5 onibool ONICALL (*DDrPersist_GetWonGame)(); 5 #include <stdint.h> 6 7 #include "Daodan.h" 8 9 uint8_t ONICALL DDrPersist_GetWonGame(); 6 10 7 11 #endif -
Daodan/src/Oni_Persistence.h
r326 r339 3 3 #define ONI_PERSISTENCE_H 4 4 5 #include <stdint.h> 5 6 #include "Daodan.h" 6 7 7 8 float ONICALL ONrPersist_GetGamma(); 9 uint8_t ONICALL ONrPersist_GetWonGame(); 8 10 9 11 #endif -
Daodan/src/Oni_Symbols.S
r326 r339 20 20 //Oni Persistance 21 21 symbol ( @ONrPersist_GetGamma@0 , 0x0010f450 ) 22 symbol ( @ONrPersist_GetWonGame@0 , 0x0010f660 ) 22 23 23 24 // BFW_Utility
Note:
See TracChangeset
for help on using the changeset viewer.