From 1f4406bc325126bb62a8467b544d4ce398124e79 Mon Sep 17 00:00:00 2001 From: israpps <57065102+israpps@users.noreply.github.com> Date: Thu, 29 Feb 2024 13:16:13 -0300 Subject: [PATCH] dont inform card status if we are not in mc root --- src/filer.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/filer.c b/src/filer.c index 658f1dae..fcea0ee0 100644 --- a/src/filer.c +++ b/src/filer.c @@ -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;