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

Function WriteStateChunk

src/state.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177static int WriteStateChunk(EMUFILE* os, int type, SFORMAT *sf)
178{
179 os->fputc(type);
180 int bsize = SubWrite((EMUFILE*)0,sf);
181 write32le(bsize,os);
182
183 if(!SubWrite(os,sf))
184 {
185 return 5;
186 }
187 return (bsize+5);
188}
189
190static SFORMAT *CheckS(SFORMAT *sf, uint32 tsize, char *desc)
191{

Callers 1

FCEUSS_SaveMSFunction · 0.85

Calls 3

SubWriteFunction · 0.85
write32leFunction · 0.85
fputcMethod · 0.45

Tested by

no test coverage detected