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

Function iSGFileSize

src/SB/Core/gc/isavegame.cpp:509–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507static S32 iSG_get_fsize(st_ISG_MEMCARD_DATA* mcdata, const char* param2);
508static S32 iSG_cubeicon_size(S32 slot, S32 param2);
509S32 iSGFileSize(st_ISGSESSION* isgdata, const char* fname)
510{
511 S32 ret = 0;
512 if (isgdata->slot < 0)
513 {
514 return -1;
515 }
516 st_ISG_MEMCARD_DATA* data = &isgdata->mcdata[isgdata->slot];
517 iTRCDisk::CheckDVDAndResetState();
518 ret = iSG_get_fsize(data, fname);
519 if (ret >= 0)
520 {
521 ret -= iSG_cubeicon_size(data->chan, data->sectorSize);
522 if (ret < 0)
523 {
524 ret = -1;
525 }
526 }
527 return ret;
528}
529
530char* iSGFileModDate(st_ISGSESSION* isgdata, const char* fname)
531{

Callers 3

iSGLoadFileFunction · 0.70
xSGGameSizeFunction · 0.50
xSG_ld_preploadFunction · 0.50

Calls 2

iSG_get_fsizeFunction · 0.85
iSG_cubeicon_sizeFunction · 0.85

Tested by

no test coverage detected