Skip to content

Commit

Permalink
[coh] print security dongle status when browsing its root
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Feb 22, 2024
1 parent f6edddf commit 98139d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/filer.c
Original file line number Diff line number Diff line change
Expand Up @@ -4278,8 +4278,15 @@ int getFilePath(char *out, int cnfmode)
browser_nfiles = setFileList(path, ext, files, cnfmode);
if (!cnfmode) { //Calculate free space (unless configuring)
if (!strncmp(path, "mc", 2)) {
mcGetInfo(path[2] - '0', 0, &mctype_PSx, &mcfreeSpace, NULL);
int mcformatted=MC_UNFORMATTED;
mcGetInfo(path[2] - '0', 0, &mctype_PSx, &mcfreeSpace, &mcformatted);
mcSync(0, NULL, &ret);
#ifdef SUPPORT_SYSTEM_2X6
if (path[2] == '0') {
sprintf(msg0, "Security dongle status: card:%d format:%d ret:%d", mctype_PSx, mcformatted, ret);
browser_pushed = FALSE;
}
#endif
freeSpace = mcfreeSpace * ((mctype_PSx == 1) ? 8192 : 1024);
vfreeSpace = TRUE;
} else if (!strncmp(path, "vmc", 3)) {
Expand Down

0 comments on commit 98139d7

Please sign in to comment.