neogeo: support for .neo format.

This commit is contained in:
sorgelig
2019-09-09 08:11:10 +08:00
parent a42d9745c8
commit 28d82d1c32
2 changed files with 164 additions and 20 deletions

View File

@@ -1062,7 +1062,11 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
de->d_type = DT_DIR;
}
if (de->d_type != DT_DIR) continue;
if (strcasecmp(de->d_name + strlen(de->d_name) - 4, ".neo"))
{
if (de->d_type != DT_DIR) continue;
}
if (!strcmp(de->d_name, ".."))
{
if (!strlen(path)) continue;