ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/patches/Patches.c
(Generate patch)

Comparing Daodan/src/patches/Patches.c (file contents):
Revision 875 by alloc, Mon May 27 23:23:10 2013 UTC vs.
Revision 876 by gumby, Sat Jun 1 20:29:59 2013 UTC

# Line 9 | Line 9
9   #include "../Daodan_Persistence.h"
10   #include "../Daodan_Utility.h"
11   #include "../Daodan_Win32.h"
12 <
12 > #ifdef FLATLINE
13 > #include "../Flatline_BSL.h"
14 > #include "../Flatline_Hooks.h"
15 > #endif
16   #include "../Oni.h"
17  
18   typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId);
# Line 560 | Line 563 | bool DD_Patch_Init()
563  
564          DD_Patch_PrintWarning();
565  
566 +
567          DD_Patch_ShowNames();
568  
569 <        if(1)
570 <        {
571 <                //DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 );
572 <                //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 >        
573  
574  
575          //Flatline related stuff
576 < //      DDrPatch_MakeCall((void*)(OniExe + 0x000FBCEA), DDrText_Hook);
576 >        DDrPatch_MakeCall((void*)(OniExe + 0x000FBCEA), DDrText_Hook);
577          
578 < //FLATLINE?     DDrPatch_Int32((int*)(OniExe + 0x000B24D2), FLrSpawnHack);
578 >        DDrPatch_Int32((int*)(OniExe + 0x000B24D2), FLrSpawnHack);
579  
580 < //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);
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
585  
586          return true;
587   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)