- Timestamp:
- Mar 17, 2009, 10:55:12 AM (16 years ago)
- Location:
- Daodan
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r272 r273 3 3 #include "Daodan_Utility.h" 4 4 5 #include "Oni.h" 5 6 #include "BFW_Utility.h" 6 7 … … 55 56 } 56 57 58 void DDrMain(int argc, char* argv[]) 59 { 60 DDrPatch_Init(); 61 62 // Safe startup message printer 63 DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage); 64 65 ONiMain(argc, argv); 66 } 67 57 68 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) 58 69 { … … 63 74 DDrONiModule = GetModuleHandle(NULL); 64 75 65 DDrPatch_Make Jump(UUrStartupMessage, DDrStartupMessage);66 DDrPatch_Init();76 DDrPatch_MakeCall((void*)0x00400000 + 0x0010fb49, DDrMain); 77 67 78 break; 68 79 } -
Daodan/src/Daodan.h
r272 r273 6 6 #include <stdbool.h> 7 7 8 #define ONICALL __fastcall 9 8 10 extern HMODULE DDrDLLModule; 9 11 extern HMODULE DDrONiModule; -
Daodan/src/Oni_Symbols.S
r272 r273 1 1 #define symbol(name, value) .global name; .set name, 0x00400000 + value 2 3 // Patch locations4 // Font texture cache doubled5 symbol ( Patch_FontCache1 , 0x00020ea7 )6 symbol ( Patch_FontCache2 , 0x00020f4a )7 8 // Now supports textures up to 512x5129 symbol ( Patch_TextureSize , 0x00005251 )10 11 // Non-"_Final" levels are now valid12 symbol ( Patch_LevelPlugins , 0x000206a8 )13 14 // Pathfinding grid cache size x815 symbol ( Patch_PathFind1 , 0x0010b03b )16 symbol ( Patch_PathFind2 , 0x0010b04c )17 18 // Projectile awareness fixed19 symbol ( Patch_Projectile1 , 0x0009c07c )20 symbol ( Patch_Projectile2 , 0x0009c080 )21 symbol ( Patch_Projectile3 , 0x0009c084 )22 symbol ( Patch_Projectile4 , 0x0009c110 )23 24 // Forced DirectInput (for Windows NT)25 symbol ( Patch_DInput , 0x00002e6d )26 27 // Makes wp_fadetime actually have a function28 symbol ( Patch_WP_Fadetime1 , 0x0011a889 )29 symbol ( Patch_WP_Fadetime2 , 0x0011a560 )30 31 // Weapon fadetime32 symbol ( Patch_Fadetime , 0x0011ab0e )33 34 // Kicking guns fix35 symbol ( Patch_GunsKick , 0x000DC420 )36 37 // Cooldown timer exploit fix ^_^38 symbol ( Patch_Cooldown , 0x0011A825 )39 40 // Replaces the pointer door_drawframes with the pointer for the "Last Man Standing" cheat.41 symbol ( Patch_Door_DFramesPtr , 0x000D8AA0 )42 43 // Replaces the variable name "door_drawframes" with the variable name "chr_lms"44 symbol ( Patch_Door_DFramesStr , 0x0015058C )45 46 // Replaces the description "draws doorframes for all unplaced doors(1 null)" with "turns on Last Man Standing mode(9 nulls)"47 symbol ( Patch_Door_DFramesDes , 0x00150564 )48 2 49 3 // MSVC6.0 stdlib … … 52 6 symbol ( _oni_fflush , 0x0011eab2 ) 53 7 8 // Oni Engine 9 symbol ( _ONiMain , 0x000d3280 ) 10 54 11 // BFW_Utility 55 12 symbol ( _UUrStartupMessage , 0x00024860 )
Note:
See TracChangeset
for help on using the changeset viewer.