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

Function AddToList

src/drivers/common/cheat.cpp:174–193  ·  view source on GitHub ↗

Returns 0 to stop listing, 1 to continue. */

Source from the content-addressed store, hash-verified

172
173/* Returns 0 to stop listing, 1 to continue. */
174int AddToList(char *text, uint32 id)
175{
176 if(listcount==16)
177 {
178 int t=ListChoice(0);
179 mordoe=0;
180 if(t==-1) return(0); // Stop listing.
181 else if(t>0 && t<17)
182 {
183 listsel=listids[t-1];
184 return(0);
185 }
186 listcount=0;
187 }
188 mordoe=1;
189 listids[listcount]=id;
190 printf("%2d) %s\n",listcount+1,text);
191 listcount++;
192 return(1);
193}
194
195/*
196**

Callers 2

clistcallbFunction · 0.85
srescallbFunction · 0.85

Calls 1

ListChoiceFunction · 0.85

Tested by

no test coverage detected