Changeset 876
- Timestamp:
- Jun 1, 2013, 10:29:59 PM (12 years ago)
- Location:
- Daodan
- Files:
-
- 24 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/makefile
r839 r876 8 8 endif 9 9 10 GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter 10 DEF = NOFLATLINE 11 GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter -D $(DEF) 11 12 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll 12 13 LOCALE = LC_MESSAGES=C 13 14 14 15 #LIBS = -lwinmm -lopengl32 -lgdi32 15 LIBS = -lgdi32 16 OBJS = src/binkw32.def 16 LIBS = -lgdi32 -lwsock32 17 OBJS = src/binkw32.def 17 18 OUT = build/binkw32.dll 18 19 19 20 FOLDERS = 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 21 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 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 21 22 DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC))) 23 22 24 23 25 ALL: $(FOLDERS) $(DEST) $(OBJS) -
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.