MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xSG_ld_validate

Function xSG_ld_validate

src/SB/Core/x/xsavegame.cpp:1254–1270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1252}
1253
1254S32 xSG_ld_validate(st_XSAVEGAME_DATA* xsgdata)
1255{
1256 S32 result = 1;
1257
1258 xsgdata->loadsize = xsgdata->readsize;
1259 xsgdata->walkpos = xsgdata->loadbuf + 0x10;
1260 xsgdata->walkremain = xsgdata->loadsize - 0x10;
1261 xsgdata->read_chksum =
1262 xUtil_crc_update(xsgdata->read_chksum, xsgdata->walkpos, xsgdata->walkremain);
1263
1264 if (xsgdata->read_chksum != xsgdata->file_chksum)
1265 {
1266 result = -1;
1267 }
1268
1269 return result;
1270}
1271
1272S32 xSG_ld_findcltblk(st_XSAVEGAME_DATA* xsgdata)
1273{

Callers 1

xSGWrapupFunction · 0.85

Calls 1

xUtil_crc_updateFunction · 0.70

Tested by

no test coverage detected