Ignore:
Timestamp:
Apr 5, 2014, 12:19:11 PM (11 years ago)
Author:
alloc
Message:

Daodan: Removed unused MSVC tree, build folders; reorganized source layout; removed Flatline from current Daodan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/patches/Patches.c

    r990 r992  
    1010#include "../Daodan_Utility.h"
    1111#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"
    1614
    1715typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId);
     
    1917// Hooked WMrSlider_SetRange() in ONiOGU_Options_InitDialog. Disables a gamma
    2018// slider in windowed mode.
    21 static void ONICALL DD_ONiOGU_GammaSlider_SetRange(WMtWindow* window, int min_value, int max_value)
     19static void ONICALL DD_ONiOGU_GammaSlider_SetRange(void* window, int min_value, int max_value)
    2220{
    2321        WMrWindow_SetEnabled(window, M3gResolutionSwitch && opt_gamma);
     
    6563
    6664
    67 void ONICALL DDrShowResumeButton(WMtWindow* window, int visibility)
     65void ONICALL DDrShowResumeButton(void* window, int visibility)
    6866{
    6967        if (visibility)
     
    7472
    7573/* Options always visible patch */
    76 void ONICALL DDrShowOptionsButton(WMtWindow* window, int visibility)
     74void ONICALL DDrShowOptionsButton(void* window, int visibility)
    7775{
    7876        WMrWindow_SetVisible(window, 1);
     
    8381        if (opt_usedaodanbsl)
    8482                SLrDaodan_Initialize();
    85         if (patch_flatline)
    86                 SLrFlatline_Initialize();
    8783}
    8884
     
    354350        // Replace start of OniParseCommandLine with XOR eax,eax; RET
    355351        DDrPatch_Int32 ((int*)(OniExe + 0x000d3570), 0x00c3c033);
    356 }
    357 
    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);
    372352}
    373353
     
    737717        DD_Patch_PrintWarning();
    738718
    739 
    740719        DD_Patch_ShowNames();
    741 /*
    742         DD_Patch_ShowTriggerVolumes();
    743         DD_Patch_ShowFlags();
    744 */
    745         if (patch_flatline)
    746                 DD_Patch_Flatline();
    747720
    748721        return true;
Note: See TracChangeset for help on using the changeset viewer.