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

Function FCEUI_GetCheat

src/cheat.cpp:453–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453int FCEUI_GetCheat(uint32 which, std::string *name, uint32 *a, uint8 *v, int *compare, int *s, int *type)
454{
455 struct CHEATF *next=cheats;
456 uint32 x=0;
457
458 while(next)
459 {
460 if(x==which)
461 {
462 if(name)
463 *name=next->name;
464 if(a)
465 *a=next->addr;
466 if(v)
467 *v=next->val;
468 if(s)
469 *s=next->status;
470 if(compare)
471 *compare=next->compare;
472 if(type)
473 *type=next->type;
474 return(1);
475 }
476 next=next->next;
477 x++;
478 }
479 return(0);
480}
481
482static int GGtobin(char c)
483{

Callers 13

emu_addgamegenieFunction · 0.85
emu_delgamegenieFunction · 0.85
UnfreezeAllRamFunction · 0.85
CheatConsoleCallBFunction · 0.85
updateCheatParametersMethod · 0.85
actvCheatItemClickedMethod · 0.85
cheat_select_rowCBFunction · 0.85
updateCheatListFunction · 0.85
cheat_cell_edited_cb1Function · 0.85
cheat_cell_edited_cb2Function · 0.85
cheat_cell_edited_cb3Function · 0.85
cheat_cell_edited_cb4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected