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

Function CheckS

src/state.cpp:190–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static SFORMAT *CheckS(SFORMAT *sf, uint32 tsize, char *desc)
191{
192 while(sf->v)
193 {
194 if(sf->s==~0u) // Link to another SFORMAT structure.
195 {
196 SFORMAT *tmp;
197 if((tmp= CheckS((SFORMAT *)sf->v, tsize, desc) ))
198 return(tmp);
199 sf++;
200 continue;
201 }
202 if(!memcmp(desc,sf->desc,4))
203 {
204 if(tsize!=(sf->s&(~FCEUSTATE_FLAGS)))
205 return(0);
206 return(sf);
207 }
208 sf++;
209 }
210 return(0);
211}
212
213static bool ReadStateChunk(EMUFILE* is, SFORMAT *sf, int size)
214{

Callers 1

ReadStateChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected