| 9 |
|
#include "../Daodan_Persistence.h" |
| 10 |
|
#include "../Daodan_Utility.h" |
| 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" |
| 14 |
|
|
| 15 |
|
typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId); |
| 16 |
|
|
| 17 |
|
// Hooked WMrSlider_SetRange() in ONiOGU_Options_InitDialog. Disables a gamma |
| 18 |
|
// slider in windowed mode. |
| 19 |
< |
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) |
| 20 |
|
{ |
| 21 |
|
WMrWindow_SetEnabled(window, M3gResolutionSwitch && opt_gamma); |
| 22 |
|
WMrSlider_SetRange(window, min_value, max_value); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
|
| 65 |
< |
void ONICALL DDrShowResumeButton(WMtWindow* window, int visibility) |
| 65 |
> |
void ONICALL DDrShowResumeButton(void* window, int visibility) |
| 66 |
|
{ |
| 67 |
|
if (visibility) |
| 68 |
|
WMrWindow_SetLocation(window, 150, 350); |
| 71 |
|
|
| 72 |
|
|
| 73 |
|
/* Options always visible patch */ |
| 74 |
< |
void ONICALL DDrShowOptionsButton(WMtWindow* window, int visibility) |
| 74 |
> |
void ONICALL DDrShowOptionsButton(void* window, int visibility) |
| 75 |
|
{ |
| 76 |
|
WMrWindow_SetVisible(window, 1); |
| 77 |
|
} |
| 80 |
|
{ |
| 81 |
|
if (opt_usedaodanbsl) |
| 82 |
|
SLrDaodan_Initialize(); |
| 85 |
– |
if (patch_flatline) |
| 86 |
– |
SLrFlatline_Initialize(); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
|
| 351 |
|
DDrPatch_Int32 ((int*)(OniExe + 0x000d3570), 0x00c3c033); |
| 352 |
|
} |
| 353 |
|
|
| 358 |
– |
// Enable flatline multiplayer code |
| 359 |
– |
void DD_Patch_Flatline() |
| 360 |
– |
{ |
| 361 |
– |
DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers ); |
| 362 |
– |
|
| 363 |
– |
//Flatline related stuff |
| 364 |
– |
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 |
– |
} |
| 373 |
– |
|
| 354 |
|
// Font texture cache doubled |
| 355 |
|
void DD_Patch_FontTextureCache() |
| 356 |
|
{ |
| 716 |
|
|
| 717 |
|
DD_Patch_PrintWarning(); |
| 718 |
|
|
| 739 |
– |
|
| 719 |
|
DD_Patch_ShowNames(); |
| 741 |
– |
/* |
| 742 |
– |
DD_Patch_ShowTriggerVolumes(); |
| 743 |
– |
DD_Patch_ShowFlags(); |
| 744 |
– |
*/ |
| 745 |
– |
if (patch_flatline) |
| 746 |
– |
DD_Patch_Flatline(); |
| 720 |
|
|
| 721 |
|
return true; |
| 722 |
|
} |