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 986 by alloc, Tue Mar 18 00:30:15 2014 UTC vs.
Revision 987 by alloc, Wed Mar 19 12:44:30 2014 UTC

# Line 178 | Line 178 | int16_t ONICALL DD_ONrMechanics_Register
178          return Oni_ONrMechanics_Register(inObjectType, inObjectTypeIndex, inGroupName, inSizeInMemory, inObjectMethods, inFlags, inMechanicsMethods);
179   }
180  
181 + _ONrGameState_HandleUtilityInput Oni_ONrGameState_HandleUtilityInput = (_ONrGameState_HandleUtilityInput)0;
182 + void ONICALL DD_ONrGameState_HandleUtilityInput(const void* inInput)
183 + {
184 +        Oni_ONrGameState_HandleUtilityInput(inInput);
185 +        
186 +        if (ONrDebugKey_WentDown(7)) {
187 +                OBJgTriggerVolume_Visible = !OBJgTriggerVolume_Visible;
188 +        }
189 + }
190  
191  
192   int DD_Patch_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output)
# Line 496 | Line 505 | void DD_Patch_ShowAllLasersights()
505   void DD_Patch_ShowTriggerVolumes()
506   {
507          Oni_ONrMechanics_Register = DDrPatch_MakeDetour((void*)ONrMechanics_Register, (void*)DD_ONrMechanics_Register);
508 +        Oni_ONrGameState_HandleUtilityInput = DDrPatch_MakeDetour((void*)ONrGameState_HandleUtilityInput, (void*)DD_ONrGameState_HandleUtilityInput);
509   }
510  
511   // Experiment with allowing enemies to be thrown over railings

Diff Legend

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