Explorar o código

toolbox: dont show .cue files in list

Eric Helgeson %!s(int64=2) %!d(string=hai) anos
pai
achega
eec90b9ef3
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/BlueSCSI_Toolbox.cpp

+ 7 - 0
src/BlueSCSI_Toolbox.cpp

@@ -41,6 +41,13 @@ bool toolboxFilenameValid(const char* name)
         debuglog("toolbox: Ignoring filename empty file name");
         return false;
     }
+    const char *extension = strrchr(name, '.');
+    if (extension && strcasecmp(extension, ".cue") == 0)
+    {
+        debuglog("toolbox: Ignoring .cue ", name);
+        return false;
+    }
+
     return true;
 }