Changeset 876


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

Daodan pass 1

Location:
Daodan
Files:
24 added
4 edited

Legend:

Unmodified
Added
Removed
  • Daodan/makefile

    r839 r876  
    88endif
    99
    10 GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter
     10DEF = NOFLATLINE
     11GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter -D $(DEF)
    1112LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
    1213LOCALE = LC_MESSAGES=C
    1314
    1415#LIBS = -lwinmm -lopengl32 -lgdi32
    15 LIBS = -lgdi32
    16 OBJS = src/binkw32.def
     16LIBS = -lgdi32 -lwsock32
     17OBJS = src/binkw32.def 
    1718OUT = build/binkw32.dll
    1819
    1920FOLDERS = patches
    20 SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Config.c src/Daodan_Console.c src/Daodan_GL.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Inifile_Reader.c src/_DLLInfo.rc src/patches/Patches.c
     21SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Config.c src/Daodan_Console.c src/Daodan_GL.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Inifile_Reader.c src/_DLLInfo.rc src/patches/Patches.c src/Flatline.c src/Flatline_BSL.c src/Flatline_Client.c src/Flatline_Hooks.c src/Flatline_Net.c src/Flatline_Packet.c src/Flatline_PacketReader.c src/Flatline_PacketBuilder.c src/Flatline_Server.c src/Flatline_Win32.c src/Mariusnet.c  src/Flatline_Events.c
    2122DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
     23
    2224
    2325ALL: $(FOLDERS) $(DEST) $(OBJS)
  • 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.