Changeset 876 for Daodan/src/patches


Ignore:
Timestamp:
Jun 1, 2013, 10:29:59 PM (11 years ago)
Author:
gumby
Message:

Daodan pass 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/patches/Patches.c

    r875 r876  
    1010#include "../Daodan_Utility.h"
    1111#include "../Daodan_Win32.h"
    12 
     12#ifdef FLATLINE
     13#include "../Flatline_BSL.h"
     14#include "../Flatline_Hooks.h"
     15#endif
    1316#include "../Oni.h"
    1417
     
    561564        DD_Patch_PrintWarning();
    562565
     566
    563567        DD_Patch_ShowNames();
    564568
    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       
    570573
    571574
    572575        //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
    582585
    583586        return true;
Note: See TracChangeset for help on using the changeset viewer.