Changeset 893 for Daodan/src/patches


Ignore:
Timestamp:
Jul 26, 2013, 12:42:31 PM (11 years ago)
Author:
alloc
Message:

Daodan 3.4:

  • Fixes #66 by only allowing landscape resolutions
  • Fixes #64, adds patch "showalllasersights" defaulting to false
  • Fixes #67, also printing Daodan version
File:
1 edited

Legend:

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

    r878 r893  
    1313#include "../flatline/Flatline_Hooks.h"
    1414#include "../Oni.h"
     15//#include "Objt.h"
    1516
    1617typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId);
     
    247248void DD_Patch_Flatline()
    248249{
    249         DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 );
    250250        DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers );
    251251       
     
    379379}
    380380
     381// Show all (also enemies') lasersights
     382void DD_Patch_ShowAllLasersights()
     383{
     384        DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 );
     385}
     386
    381387// Experiment with allowing enemies to be thrown over railings
    382388void DD_Patch_Throwtest()
     
    479485}
    480486
     487/*
     488void DD_Patch_ShowTriggerVolumes()
     489{
     490        DDrPatch_Int32((int*)(OniExe + 0x000cc9bb+4), (uint32_t)DD_OBJiTriggerVolume_Draw);
     491}
     492
     493void DD_Patch_ShowFlags()
     494{
     495        DDrPatch_Int32((int*)(OniExe + 0x000c4ed4+4), (uint32_t)DD_OBJiFlag_Draw);
     496}
     497*/
     498
    481499bool DD_Patch_Init()
    482500{
     
    560578        if (patch_safeprintf)
    561579                DD_Patch_SafePrintf();
     580
     581        if (patch_showalllasersights)
     582                DD_Patch_ShowAllLasersights();
    562583       
    563584        if (patch_throwtest)
     
    582603
    583604        DD_Patch_ShowNames();
    584 
     605/*
     606        DD_Patch_ShowTriggerVolumes();
     607        DD_Patch_ShowFlags();
     608*/
    585609        if (patch_flatline)
    586610                DD_Patch_Flatline();
Note: See TracChangeset for help on using the changeset viewer.