MCPcopy Create free account
hub / github.com/TASEmulators/fceux / ListCheats

Function ListCheats

src/drivers/common/cheat.cpp:362–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362static void ListCheats(void)
363{
364 int which;
365 lid=0;
366
367 BeginListShow();
368 FCEUI_ListCheats(clistcallb,0);
369 which=EndListShow();
370 if(which>=0)
371 {
372 char tmp[32];
373 printf(" <(T)oggle status, (M)odify, or (D)elete this cheat.> ");
374 if ( fgets(tmp,ARRAY_SIZE(tmp),stdin) == nullptr )
375 {
376 tmp[0] = 0;
377 }
378 switch(tolower(tmp[0]))
379 {
380 case 't':ToggleCheat(which);
381 break;
382 case 'd':if(!FCEUI_DelCheat(which))
383 puts("Error deleting cheat!");
384 else
385 puts("Cheat has been deleted.");
386 break;
387 case 'm':ModifyCheat(which);
388 break;
389 }
390 }
391}
392
393static void ResetSearch(void)
394{

Callers

nothing calls this directly

Calls 6

BeginListShowFunction · 0.85
FCEUI_ListCheatsFunction · 0.85
EndListShowFunction · 0.85
ToggleCheatFunction · 0.85
FCEUI_DelCheatFunction · 0.85
ModifyCheatFunction · 0.85

Tested by

no test coverage detected