Changeset 876 for Daodan/src


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

Daodan pass 1

Location:
Daodan/src
Files:
24 added
3 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_BSL.c

    r839 r876  
    821821}
    822822
     823extern void SLrFlatline_Initialize();
     824
    823825void SLrDaodan_Initialize()
    824826{
     
    857859        SLrScript_Command_Register_ReturnType("st", "Prints to console in color", "", sl_void, bsl_dprintcolored);
    858860        SLrScript_Command_Register_ReturnType("d_dprint", "Prints to console in color", "", sl_void, bsl_dprintcolored);
     861
     862#ifdef FLATLINE
     863        SLrFlatline_Initialize();
     864#endif
    859865}
    860866
  • Daodan/src/Oni_Symbols.h

    r705 r876  
    1 #ifndef ONI_SYMBOLS_H 
     1#ifndef ONI_SYMBOLS_H
    22#define ONI_SYMBOLS_H
    33#include "stdint.h"
     
    3434// Game termination flag (ONiRunGame loops on it).
    3535#define ONgTerminateGame        (*((UUtBool*)0x00630ffd))
    36  
     36
    3737// Window manager is running (drawing and updating windows).
    3838#define WMgActive                       (*((UUtBool*)0x005e99a0))
    39  
     39
    4040// Set by WinMain, used by UUrPlatform_Initialize and ONrPlatform_Initialize,
    4141// which copies it into ONgPlatformData.
    4242#define ONgInstance                     (*((HINSTANCE*)0x0061f9e4))
    43  
     43
    4444// Keeps initial gamma ramp value (before any change).
    4545#define GLgInitialGammaRamp     (((M3tWin32GammaRamp*)0x0055fdfc))
  • 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.