diff --git a/source/dirbrowse.c b/source/dirbrowse.c index b7891ff..59022c2 100644 --- a/source/dirbrowse.c +++ b/source/dirbrowse.c @@ -280,19 +280,19 @@ void Dirbrowse_DisplayFiles(void) if (file->isDir) SDL_DrawImage(RENDERER, config_dark_theme? icon_dir_dark : icon_dir, 80, 141 + (73 * printed), 72, 72); else if ((strncasecmp(FS_GetFileExt(file->name), "nro", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "elf", 3) == 0) - || (strncasecmp(FS_GetFileExt(file->name), "bin", 3) == 0)) + || (strncasecmp(FS_GetFileExt(file->name), "bin", 3) == 0)) SDL_DrawImage(RENDERER, icon_app, 80, 141 + (73 * printed), 72, 72); else if ((strncasecmp(FS_GetFileExt(file->name), "zip", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "tar", 3) == 0) - || (strncasecmp(FS_GetFileExt(file->name), "lz4", 3) == 0)) + || (strncasecmp(FS_GetFileExt(file->name), "lz4", 3) == 0)) SDL_DrawImage(RENDERER, icon_archive, 80, 141 + (73 * printed), 72, 72); else if ((strncasecmp(FS_GetFileExt(file->name), "mp3", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "wav", 3) == 0) - || (strncasecmp(FS_GetFileExt(file->name), "ogg", 3) == 0)) + || (strncasecmp(FS_GetFileExt(file->name), "ogg", 3) == 0)) SDL_DrawImage(RENDERER, icon_audio, 80, 141 + (73 * printed), 72, 72); - else if ((strncasecmp(FS_GetFileExt(file->name), "bmp", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "gif", 3) == 0) - || (strncasecmp(FS_GetFileExt(file->name), "jpg", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "png", 3) == 0)) + else if ((strncasecmp(FS_GetFileExt(file->name), "png", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "jpg", 3) == 0) || + (strncasecmp(FS_GetFileExt(file->name), "bmp", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "gif", 3) == 0)) SDL_DrawImage(RENDERER, icon_image, 80, 141 + (73 * printed), 72, 72); else if ((strncasecmp(FS_GetFileExt(file->name), "txt", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "lua", 3) == 0) - || (strncasecmp(FS_GetFileExt(file->name), "cfg", 3) == 0)) + || (strncasecmp(FS_GetFileExt(file->name), "cfg", 3) == 0)) SDL_DrawImage(RENDERER, icon_text, 80, 141 + (73 * printed), 72, 72); else SDL_DrawImage(RENDERER, icon_file, 80, 141 + (73 * printed), 72, 72); @@ -369,7 +369,8 @@ void Dirbrowse_OpenFile(void) Dirbrowse_PopulateFiles(true); } } - else if ((strncasecmp(FS_GetFileExt(file->name), "png", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "jpg", 3) == 0)) + else if ((strncasecmp(FS_GetFileExt(file->name), "png", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "jpg", 3) == 0) || + (strncasecmp(FS_GetFileExt(file->name), "bmp", 3) == 0) || (strncasecmp(FS_GetFileExt(file->name), "gif", 3) == 0)) Gallery_DisplayImage(path); else if (strncasecmp(FS_GetFileExt(file->name), "zip", 3) == 0) {