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

Comparing Daodan/src/Patches/Cheater.c (file contents):
Revision 1017 by alloc, Mon Mar 23 23:29:19 2015 UTC vs.
Revision 1163 by rossy, Sun Oct 24 02:50:48 2021 UTC

# Line 296 | Line 296 | void __stdcall FallingFrames(void* Ebp)
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);
# Line 307 | Line 307 | static void BindableCheatCallback (Custo
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  

Diff Legend

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