Skip to content

Commit

Permalink
Improve file information screen (#112)
Browse files Browse the repository at this point in the history
Adds extra emulator ROM extensions.
Adds Controller Pak extension used by ares.
  • Loading branch information
networkfusion authored Jun 11, 2024
1 parent 208527a commit 7a2833c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/menu/views/file_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ static const char *patch_extensions[] = { "aps", "bps", "ips", "pps", "ups", "xd
static const char *archive_extensions[] = { "zip", "rar", "7z", "tar", "gz", NULL };
static const char *image_extensions[] = { "png", "jpg", "gif", NULL };
static const char *music_extensions[] = { "mp3", "wav", "ogg", "wma", "flac", NULL };
static const char *dexdrive_extensions[] = { "mpk", NULL };
static const char *emulator_extensions[] = { "emu", NULL };
static const char *controller_pak_extensions[] = { "mpk", "pak", NULL };
static const char *emulator_extensions[] = { "nes", "smc", "gb", "gbc", "sms", "gg", NULL };


static struct stat st;
Expand All @@ -39,10 +39,10 @@ static char *format_file_type (char *name, bool is_directory) {
return " Type: Image file\n";
} else if (file_has_extensions(name, music_extensions)) {
return " Type: Music file\n";
} else if (file_has_extensions(name, dexdrive_extensions)) {
return " Type: DexDrive CPak backup file\n";
} else if (file_has_extensions(name, controller_pak_extensions)) {
return " Type: Controller Pak file\n";
} else if (file_has_extensions(name, emulator_extensions)) {
return " Type: Emulator file\n";
return " Type: Emulator ROM file\n";
}
return " Type: Unknown file\n";
}
Expand Down

0 comments on commit 7a2833c

Please sign in to comment.