| 507 | static S32 iSG_get_fsize(st_ISG_MEMCARD_DATA* mcdata, const char* param2); |
| 508 | static S32 iSG_cubeicon_size(S32 slot, S32 param2); |
| 509 | S32 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 | |
| 530 | char* iSGFileModDate(st_ISGSESSION* isgdata, const char* fname) |
| 531 | { |
no test coverage detected