Changeset 992
- Timestamp:
- Apr 5, 2014, 12:19:11 PM (11 years ago)
- Location:
- Daodan
- Files:
-
- 12 added
- 14 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/makefile
r990 r992 1 1 SRC = src 2 2 TARGET = build 3 SUBFOLDERS = patches flatlinebeaengine3 SUBFOLDERS = patches beaengine 4 4 5 5 DEF = BEA_ENGINE_STATIC -
Daodan/src/Daodan.c
r990 r992 15 15 #include "_Version.h" 16 16 17 #include "Oni.h" 18 19 #include "Oni_GL.h" 17 #include "Oni/Oni.h" 20 18 21 19 HMODULE DDrDLLModule; -
Daodan/src/Daodan.h
r894 r992 6 6 #include "stdint.h" 7 7 8 #define ONICALL __fastcall 9 #define UUmType(t) typedef struct t t; 10 11 #define DDmAssert(expr) assert(expr); 12 13 typedef unsigned char UUtBool; 14 #define UUcTrue ((UUtBool) 1) 15 #define UUcFalse ((UUtBool) 0) 16 17 typedef unsigned short UUtError; 18 #define UUcError_None ((UUtError) 0) 19 20 typedef unsigned char UUtUns8; 21 typedef unsigned short UUtUns16; 22 typedef unsigned int UUtUns32; 23 typedef char UUtInt8; 24 typedef short UUtInt16; 25 typedef int UUtInt32; 8 #include "Oni/Oni.h" 26 9 27 10 extern HMODULE DDrDLLModule; -
Daodan/src/Daodan_BSL.c
r882 r992 8 8 #include "Daodan_Patch.h" 9 9 #include "Daodan_Console.h" 10 #include "BFW_ScriptLang.h" 11 #include "Oni.h" 12 #include "Oni_Character.h" 13 #include "Oni_GL.h" 10 11 #include "Oni/Oni.h" 12 14 13 #include "Daodan_Character.h" 15 14 -
Daodan/src/Daodan_Character.c
r739 r992 1 1 #include <stdlib.h> 2 2 #include "Daodan_Character.h" 3 #include "Oni_Character.h" 4 #include "Oni .h"3 4 #include "Oni/Oni.h" 5 5 6 6 int DDr_TeamToTeamID(const char* team_string) //Already something like this in the engine, but I'm reimplementing it... -
Daodan/src/Daodan_Cheater.c
r837 r992 2 2 #include "stdint.h" 3 3 #include <math.h> 4 #include "Oni.h" 5 #include "Oni _Character.h"4 5 #include "Oni/Oni.h" 6 6 7 7 #include "_Version.h" … … 9 9 #include "Daodan.h" 10 10 #include "Daodan_Cheater.h" 11 11 12 union MSVC_EVIL_FLOAT_HACK 12 13 { -
Daodan/src/Daodan_Config.c
r990 r992 7 7 #include "Daodan_Utility.h" 8 8 9 #include "Oni _Symbols.h"9 #include "Oni/Oni.h" 10 10 11 11 #include "Inifile_Reader.h" -
Daodan/src/Daodan_Console.c
r692 r992 3 3 4 4 #include "Daodan_Console.h" 5 #include "Oni _Symbols.h"5 #include "Oni/Oni.h" 6 6 7 7 void DDrConsole_Print(const char* text) -
Daodan/src/Daodan_GL.c
r893 r992 1 1 #include <windows.h> 2 2 #include <math.h> 3 4 #include "Oni.h" 3 #include <GL/gl.h> 4 #include <GL/glu.h> 5 6 #include "Oni/Oni.h" 7 5 8 #include "Daodan_Config.h" 6 9 #include "Daodan_Utility.h" 7 #include <GL/gl.h>8 #include <GL/glu.h>9 10 #include "Daodan_Win32.h" 10 11 11 #include "Daodan_GL.h" 12 #include "Oni_GL.h"13 12 14 13 static const M3tDisplayMode daodan_reslist[] = -
Daodan/src/Daodan_GL.h
r705 r992 3 3 4 4 #include "Daodan.h" 5 #include " BFW_Motoko_Draw.h"5 #include "Oni/Oni.h" 6 6 7 7 unsigned short ONICALL DD_GLrEnumerateDisplayModes(M3tDisplayMode* modes); -
Daodan/src/Daodan_Utility.c
r692 r992 4 4 5 5 #include "Daodan_Utility.h" 6 #include "Oni .h"6 #include "Oni/Oni.h" 7 7 8 8 const double fps = 60.0; -
Daodan/src/Daodan_Win32.c
r838 r992 5 5 #include "Daodan_Win32.h" 6 6 7 #include "BFW_Utility.h" 8 #include "Oni.h" 7 #include "Oni/Oni.h" 9 8 10 9 -
Daodan/src/Daodan_Win32.h
r705 r992 3 3 4 4 #include "Daodan.h" 5 #include "Oni .h"5 #include "Oni/Oni.h" 6 6 7 7 UUtError ONICALL DD_ONrPlatform_Initialize(ONtPlatformData *PlatformData); -
Daodan/src/guitest.c
r990 r992 3 3 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 4 4 5 guitest(HMODULE hInstance, int nCmdShow)5 void guitest(HMODULE hInstance, int nCmdShow) 6 6 { 7 7 MSG msg; … … 31 31 DispatchMessage(&msg); 32 32 } 33 34 return (int) msg.wParam;35 33 } 36 34 -
Daodan/src/patches/Patches.c
r990 r992 10 10 #include "../Daodan_Utility.h" 11 11 #include "../Daodan_Win32.h" 12 #include "../flatline/Flatline_BSL.h" 13 #include "../flatline/Flatline_Hooks.h" 14 #include "../Oni.h" 15 #include "objt.h" 12 13 #include "../Oni/Oni.h" 16 14 17 15 typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId); … … 19 17 // Hooked WMrSlider_SetRange() in ONiOGU_Options_InitDialog. Disables a gamma 20 18 // slider in windowed mode. 21 static void ONICALL DD_ONiOGU_GammaSlider_SetRange( WMtWindow* window, int min_value, int max_value)19 static void ONICALL DD_ONiOGU_GammaSlider_SetRange(void* window, int min_value, int max_value) 22 20 { 23 21 WMrWindow_SetEnabled(window, M3gResolutionSwitch && opt_gamma); … … 65 63 66 64 67 void ONICALL DDrShowResumeButton( WMtWindow* window, int visibility)65 void ONICALL DDrShowResumeButton(void* window, int visibility) 68 66 { 69 67 if (visibility) … … 74 72 75 73 /* Options always visible patch */ 76 void ONICALL DDrShowOptionsButton( WMtWindow* window, int visibility)74 void ONICALL DDrShowOptionsButton(void* window, int visibility) 77 75 { 78 76 WMrWindow_SetVisible(window, 1); … … 83 81 if (opt_usedaodanbsl) 84 82 SLrDaodan_Initialize(); 85 if (patch_flatline)86 SLrFlatline_Initialize();87 83 } 88 84 … … 354 350 // Replace start of OniParseCommandLine with XOR eax,eax; RET 355 351 DDrPatch_Int32 ((int*)(OniExe + 0x000d3570), 0x00c3c033); 356 }357 358 // Enable flatline multiplayer code359 void DD_Patch_Flatline()360 {361 DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers );362 363 //Flatline related stuff364 DDrPatch_MakeCall((void*)(OniExe + 0x000FBCEA), DDrText_Hook);365 366 DDrPatch_Int32((int*)(OniExe + 0x000B24D2), (unsigned int)FLrSpawnHack);367 368 DDrPatch_NOOP((char*)(OniExe + 0x000C26CB), 6);369 370 DDrPatch_MakeCall((void*)(OniExe + 0x000C26CB), FLrHook_DoorOpen);371 DDrPatch_MakeCall((void*)(OniExe + 0x000EE3CF), FLrHook_ConsoleActivate);372 352 } 373 353 … … 737 717 DD_Patch_PrintWarning(); 738 718 739 740 719 DD_Patch_ShowNames(); 741 /*742 DD_Patch_ShowTriggerVolumes();743 DD_Patch_ShowFlags();744 */745 if (patch_flatline)746 DD_Patch_Flatline();747 720 748 721 return true;
Note:
See TracChangeset
for help on using the changeset viewer.