Changeset 876 for Daodan/src
- Timestamp:
- Jun 1, 2013, 10:29:59 PM (12 years ago)
- Location:
- Daodan/src
- Files:
-
- 24 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_BSL.c
r839 r876 821 821 } 822 822 823 extern void SLrFlatline_Initialize(); 824 823 825 void SLrDaodan_Initialize() 824 826 { … … 857 859 SLrScript_Command_Register_ReturnType("st", "Prints to console in color", "", sl_void, bsl_dprintcolored); 858 860 SLrScript_Command_Register_ReturnType("d_dprint", "Prints to console in color", "", sl_void, bsl_dprintcolored); 861 862 #ifdef FLATLINE 863 SLrFlatline_Initialize(); 864 #endif 859 865 } 860 866 -
Daodan/src/Oni_Symbols.h
r705 r876 1 #ifndef ONI_SYMBOLS_H 1 #ifndef ONI_SYMBOLS_H 2 2 #define ONI_SYMBOLS_H 3 3 #include "stdint.h" … … 34 34 // Game termination flag (ONiRunGame loops on it). 35 35 #define ONgTerminateGame (*((UUtBool*)0x00630ffd)) 36 36 37 37 // Window manager is running (drawing and updating windows). 38 38 #define WMgActive (*((UUtBool*)0x005e99a0)) 39 39 40 40 // Set by WinMain, used by UUrPlatform_Initialize and ONrPlatform_Initialize, 41 41 // which copies it into ONgPlatformData. 42 42 #define ONgInstance (*((HINSTANCE*)0x0061f9e4)) 43 43 44 44 // Keeps initial gamma ramp value (before any change). 45 45 #define GLgInitialGammaRamp (((M3tWin32GammaRamp*)0x0055fdfc)) -
Daodan/src/patches/Patches.c
r875 r876 10 10 #include "../Daodan_Utility.h" 11 11 #include "../Daodan_Win32.h" 12 12 #ifdef FLATLINE 13 #include "../Flatline_BSL.h" 14 #include "../Flatline_Hooks.h" 15 #endif 13 16 #include "../Oni.h" 14 17 … … 561 564 DD_Patch_PrintWarning(); 562 565 566 563 567 DD_Patch_ShowNames(); 564 568 565 if(1) 566 { 567 //DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 ); 568 //DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers ); 569 } 569 #ifdef FLATLINE 570 DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 ); 571 DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers ); 572 570 573 571 574 572 575 //Flatline related stuff 573 //DDrPatch_MakeCall((void*)(OniExe + 0x000FBCEA), DDrText_Hook);574 575 //FLATLINE?DDrPatch_Int32((int*)(OniExe + 0x000B24D2), FLrSpawnHack);576 577 //FLATLINE?DDrPatch_NOOP((char*)(OniExe + 0x000C26CB), 6);578 579 //FLATLINE?DDrPatch_MakeCall((void*)(OniExe + 0x000C26CB), FLrHook_DoorOpen);580 //FLATLINE?DDrPatch_MakeCall((void*)(OniExe + 0x000EE3CF), FLrHook_ConsoleActivate);581 576 DDrPatch_MakeCall((void*)(OniExe + 0x000FBCEA), DDrText_Hook); 577 578 DDrPatch_Int32((int*)(OniExe + 0x000B24D2), FLrSpawnHack); 579 580 DDrPatch_NOOP((char*)(OniExe + 0x000C26CB), 6); 581 582 DDrPatch_MakeCall((void*)(OniExe + 0x000C26CB), FLrHook_DoorOpen); 583 DDrPatch_MakeCall((void*)(OniExe + 0x000EE3CF), FLrHook_ConsoleActivate); 584 #endif 582 585 583 586 return true;
Note:
See TracChangeset
for help on using the changeset viewer.