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

Function clistcallb

src/drivers/common/cheat.cpp:346–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345static int lid;
346static int clistcallb(const char *name, uint32 a, uint8 v, int compare, int s, int type, void *data)
347{
348 char tmp[512];
349 int ret;
350
351 if(compare>=0)
352 sprintf(tmp,"%s $%04x:%03u:%03d - %s",s?"*":" ",(unsigned int)a,(unsigned int)v,compare,name);
353 else
354 sprintf(tmp,"%s $%04x:%03u - %s",s?"*":" ",(unsigned int)a,(unsigned int)v,name);
355 if(type==1)
356 tmp[2]='S';
357 ret=AddToList(tmp,lid);
358 lid++;
359 return(ret);
360}
361
362static void ListCheats(void)
363{

Callers

nothing calls this directly

Calls 1

AddToListFunction · 0.85

Tested by

no test coverage detected