Changeset 1163 for Daodan/src/Patches/Cheater.c
- Timestamp:
- Oct 24, 2021, 4:50:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Patches/Cheater.c
r1017 r1163 297 297 298 298 299 static void BindableCheatCallback ( CustomActionCallbackArgument cheatnum) {299 static void BindableCheatCallback (intptr_t cheatnum) { 300 300 uint8_t res = DDrCheater (cheatnum); 301 301 if (res) … … 308 308 oniCheatCode* cur; 309 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); 313 312 } 314 313 }
Note:
See TracChangeset
for help on using the changeset viewer.