Changeset 992 for Daodan/src/patches
- Timestamp:
- Apr 5, 2014, 12:19:11 PM (11 years ago)
- Location:
- Daodan/src/patches
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.