diff --git a/support/arcade/romutils.cpp b/support/arcade/romutils.cpp index e36998a..b48f8c4 100644 --- a/support/arcade/romutils.cpp +++ b/support/arcade/romutils.cpp @@ -842,7 +842,8 @@ static const char *get_rbf(const char *xml) static char lastfound[256] = {}; while ((entry = readdir(dir)) != NULL) { - if (entry->d_type != DT_DIR) + len = strlen(entry->d_name); + if (entry->d_type != DT_DIR && len > 4 && !strcasecmp(entry->d_name+len-4,".rbf")) { static char newstring[kBigTextSize]; //printf("entry name: %s\n",entry->d_name);