ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/patches/Patches.c
(Generate patch)

Comparing Daodan/src/patches/Patches.c (file contents):
Revision 878 by alloc, Sun Jun 2 11:58:39 2013 UTC vs.
Revision 893 by alloc, Fri Jul 26 10:42:31 2013 UTC

# Line 12 | Line 12
12   #include "../flatline/Flatline_BSL.h"
13   #include "../flatline/Flatline_Hooks.h"
14   #include "../Oni.h"
15 + //#include "Objt.h"
16  
17   typedef int (__cdecl *CHINESEPROC)(DWORD ThreadId);
18  
# Line 246 | Line 247 | void DD_Patch_DisableCmdLine()
247   // Enable flatline multiplayer code
248   void DD_Patch_Flatline()
249   {
249        DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 );
250          DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers );
251          
252          //Flatline related stuff
# Line 378 | Line 378 | void DD_Patch_SafePrintf()
378          DDrPatch_MakeJump((void*)UUrStartupMessage, (void*)DDrStartupMessage);
379   }
380  
381 + // Show all (also enemies') lasersights
382 + void DD_Patch_ShowAllLasersights()
383 + {
384 +        DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 );
385 + }
386 +
387   // Experiment with allowing enemies to be thrown over railings
388   void DD_Patch_Throwtest()
389   {
# Line 478 | Line 484 | void DD_Patch_ShowNames()
484   */
485   }
486  
487 + /*
488 + void DD_Patch_ShowTriggerVolumes()
489 + {
490 +        DDrPatch_Int32((int*)(OniExe + 0x000cc9bb+4), (uint32_t)DD_OBJiTriggerVolume_Draw);
491 + }
492 +
493 + void DD_Patch_ShowFlags()
494 + {
495 +        DDrPatch_Int32((int*)(OniExe + 0x000c4ed4+4), (uint32_t)DD_OBJiFlag_Draw);
496 + }
497 + */
498 +
499   bool DD_Patch_Init()
500   {
501          DDrStartupMessage("Daodan: Patching engine");
# Line 559 | Line 577 | bool DD_Patch_Init()
577  
578          if (patch_safeprintf)
579                  DD_Patch_SafePrintf();
580 +
581 +        if (patch_showalllasersights)
582 +                DD_Patch_ShowAllLasersights();
583          
584          if (patch_throwtest)
585                  DD_Patch_Throwtest();
# Line 581 | Line 602 | bool DD_Patch_Init()
602  
603  
604          DD_Patch_ShowNames();
605 <
605 > /*
606 >        DD_Patch_ShowTriggerVolumes();
607 >        DD_Patch_ShowFlags();
608 > */
609          if (patch_flatline)
610                  DD_Patch_Flatline();
611  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)