--- Daodan/src/Patches/Patches.c 2014/08/25 23:21:09 1008 +++ Daodan/src/Patches/Patches.c 2015/03/23 23:29:19 1017 @@ -5,6 +5,7 @@ #include "Cheater.h" #include "../Daodan_Config.h" #include "GL.h" +#include "Input.h" #include "../Daodan_Patch.h" #include "Utility.h" #include "Win32.h" @@ -131,6 +132,8 @@ int16_t ONICALL DD_COrTextArea_Resize(vo return Oni_COrTextArea_Resize(inTextArea, inBounds, inNumTextEntries); } + + #define IMcShade_Red (0xFFFF0000) #define IMcShade_Green (0xFF00FF00) #define IMcShade_Blue (0xFF0000FF) @@ -371,6 +374,11 @@ bool DD_Patch_Init() // At end of ONrUnlockLevel to init values on level loading DDrPatch_MakeJump((void*)(OniExe + 0x0010f021), (void*)DDrCheater_LevelLoad); + + if (DDrConfig_GetOptOfType("gameplay.bindablecheats", C_BOOL)->value.intBoolVal) + { + InitBindableCheats(); + } } if (DDrConfig_GetOptOfType("language.chinese", C_BOOL)->value.intBoolVal) @@ -438,6 +446,12 @@ bool DD_Patch_Init() Oni_COrTextArea_Resize = DDrPatch_MakeDetour((void*)COrTextArea_Resize, (void*)DD_COrTextArea_Resize); } + // Allow custom actions to be bound through Daodan + if (DDrConfig_GetOptOfType("gameplay.customactions", C_BOOL)->value.intBoolVal) + { + Input_PatchCode (); + } + // Hackish fix for Konoko not kicking guns // Don't use this, it breaks stairs. if (DDrConfig_GetOptOfType("gameplay.kickguns", C_BOOL)->value.intBoolVal)