arcade: filter out non-rbf files.

This commit is contained in:
sorgelig
2020-01-23 15:42:19 +08:00
parent 0534185875
commit b4a4af0a86

View File

@@ -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);