Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 28, 2024
1 parent 1afd5ae commit 47e79b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filer.c
Original file line number Diff line number Diff line change
Expand Up @@ -4469,7 +4469,7 @@ int getFilePath(char *out, int cnfmode)
iconcolr = COLOR_GRAPH1;
} else {
iconbase = ICON_FILE;
if (genCmpFileExt(files[top + i].name, "ELF"))
if (genCmpFileExt(files[top + i].name, "ELF") || genCmpFileExt(files[top + i].name, "IRX"))
iconcolr = COLOR_GRAPH2;
else if (
genCmpFileExt(files[top + i].name, "TXT") ||
Expand Down
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2030,14 +2030,16 @@ int IsSupportedFileType(char *path)
#ifdef SUPPORT_SYSTEM_2X6
if(strchr(path, ':') != NULL) {
if ((genCmpFileExt(path, "TXT") || genCmpFileExt(path, "CHT") || genCmpFileExt(path, "CFG") || genCmpFileExt(path, "INI") || genCmpFileExt(path, "CNF") ) || (genCmpFileExt(path, "JPG") || genCmpFileExt(path, "JPEG"))) return 1;
else if(genCmpFileExt(path, "IRX")) return 0;
else if((checkELFheader(path, TYPE_IRX) >= 0)) return 1;
else return(checkELFheader(path, TYPE_ELF) >= 0);
} else //No ':', hence no device name in path, which means it is a special action (e.g. MISC/*).
return 1;
#else
if (strchr(path, ':') != NULL) {
if (genCmpFileExt(path, "ELF")) {
return (checkELFheader(path, TYPE_ELF) >= 0);
} else if(genCmpFileExt(path, "IRX")) {
return(checkELFheader(path, TYPE_IRX) >= 0)
} else if ((genCmpFileExt(path, "TXT") || genCmpFileExt(path, "CHT") || genCmpFileExt(path, "CFG") || genCmpFileExt(path, "INI") || genCmpFileExt(path, "CNF") ) || (genCmpFileExt(path, "JPG") || genCmpFileExt(path, "JPEG"))) {
return 1;
} else
Expand Down

0 comments on commit 47e79b1

Please sign in to comment.