| 296 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 297 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 298 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 299 | < | static void BindableCheatCallback (CustomActionCallbackArgument cheatnum) { | 
 
 
 
 
 
 
 
 
 | 299 | > | static void BindableCheatCallback (intptr_t cheatnum) { | 
 
 
 
 
 
 
 
 
 
 
 | 300 |  | uint8_t res = DDrCheater (cheatnum); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 301 |  | if (res) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 302 |  | COrMessage_Print(DDr_CheatTable[cheatnum].message_on, 0, 240); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 307 |  | void InitBindableCheats() { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 308 |  | oniCheatCode* cur; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 309 |  | for (cur = DDr_CheatTable; cur->name != 0; cur++) { | 
 
 
 
 
 
 
 
 
 
 
 | 310 | < | //              char* val = malloc(20); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 311 | < | //              sprintf(val, "cheat_%s", cur->name); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 312 | < | Input_RegisterCustomAction (cur->name, EVENT_KEYPRESS, 0, BindableCheatCallback, cur->func); | 
 
 
 
 
 
 
 
 
 | 310 | > | DDrInput_RegisterCustomAction(cur->name, DDcEventType_KeyPress, | 
 
 
 
 
 | 311 | > | BindableCheatCallback, cur->func); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 312 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 313 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 314 |  |  |