5 |
|
#include "Cheater.h" |
6 |
|
#include "../Daodan_Config.h" |
7 |
|
#include "GL.h" |
8 |
+ |
#include "Input.h" |
9 |
|
#include "../Daodan_Patch.h" |
10 |
|
#include "Utility.h" |
11 |
|
#include "Win32.h" |
132 |
|
return Oni_COrTextArea_Resize(inTextArea, inBounds, inNumTextEntries); |
133 |
|
} |
134 |
|
|
135 |
+ |
|
136 |
+ |
|
137 |
|
#define IMcShade_Red (0xFFFF0000) |
138 |
|
#define IMcShade_Green (0xFF00FF00) |
139 |
|
#define IMcShade_Blue (0xFF0000FF) |
374 |
|
|
375 |
|
// At end of ONrUnlockLevel to init values on level loading |
376 |
|
DDrPatch_MakeJump((void*)(OniExe + 0x0010f021), (void*)DDrCheater_LevelLoad); |
377 |
+ |
|
378 |
+ |
if (DDrConfig_GetOptOfType("gameplay.bindablecheats", C_BOOL)->value.intBoolVal) |
379 |
+ |
{ |
380 |
+ |
InitBindableCheats(); |
381 |
+ |
} |
382 |
|
} |
383 |
|
|
384 |
|
if (DDrConfig_GetOptOfType("language.chinese", C_BOOL)->value.intBoolVal) |
446 |
|
Oni_COrTextArea_Resize = DDrPatch_MakeDetour((void*)COrTextArea_Resize, (void*)DD_COrTextArea_Resize); |
447 |
|
} |
448 |
|
|
449 |
+ |
// Allow custom actions to be bound through Daodan |
450 |
+ |
if (DDrConfig_GetOptOfType("gameplay.customactions", C_BOOL)->value.intBoolVal) |
451 |
+ |
{ |
452 |
+ |
Input_PatchCode (); |
453 |
+ |
} |
454 |
+ |
|
455 |
|
// Hackish fix for Konoko not kicking guns |
456 |
|
// Don't use this, it breaks stairs. |
457 |
|
if (DDrConfig_GetOptOfType("gameplay.kickguns", C_BOOL)->value.intBoolVal) |