Skip to content

Commit

Permalink
dont inform card status if we are not in mc root
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 29, 2024
1 parent e741acb commit 1f4406b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/filer.c
Original file line number Diff line number Diff line change
Expand Up @@ -4282,12 +4282,14 @@ int getFilePath(char *out, int cnfmode)
mcGetInfo(path[2] - '0', 0, &mctype_PSx, &mcfreeSpace, &mcformatted);
mcSync(0, NULL, &ret);
#ifdef SUPPORT_SYSTEM_2X6
sprintf(msg0, "%s status: type:%d format:%d ret:%d",
(path[2] == '0')?"Security dongle":"Memory Card",
mctype_PSx,
mcformatted,
ret);
browser_pushed = FALSE;
if (strlen(path)==5) {
sprintf(msg0, "%s status: type:%d format:%d ret:%d",
(path[2] == '0')?"Security dongle":"Memory Card",
mctype_PSx,
mcformatted,
ret);
browser_pushed = FALSE;
}
#endif
freeSpace = mcfreeSpace * ((mctype_PSx == 1) ? 8192 : 1024);
vfreeSpace = TRUE;
Expand Down

0 comments on commit 1f4406b

Please sign in to comment.