From d0683e9450c931841d27927aecab0788e07c81d4 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Mon, 29 Apr 2024 23:16:37 +0100 Subject: [PATCH] Add "pak" extensions Ares uses them as the "CPak" extension, so makes it easier to support. --- src/menu/views/browser.c | 2 +- src/menu/views/file_info.c | 2 +- src/menu/views/joypad_controller_pak.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu/views/browser.c b/src/menu/views/browser.c index 2c4a4482..ad9e3eac 100644 --- a/src/menu/views/browser.c +++ b/src/menu/views/browser.c @@ -13,7 +13,7 @@ static const char *disk_extensions[] = { "ndd", NULL }; static const char *emulator_extensions[] = { "nes", "sfc", "smc", "gb", "gbc", "sms", "gg", "sg", NULL }; // TODO: "eep", "sra", "srm", "fla" could be used if transfered from different flashcarts. static const char *save_extensions[] = { "sav", NULL }; -//static const char *joypad_accessory_save_extensions[] = { "cpak", "mpk", NULL }; +//static const char *joypad_accessory_save_extensions[] = { "cpak", "mpk", "pak", NULL }; static const char *image_extensions[] = { "png", NULL }; static const char *text_extensions[] = { "txt", "ini", "yml", "yaml", NULL }; static const char *music_extensions[] = { "mp3", NULL }; diff --git a/src/menu/views/file_info.c b/src/menu/views/file_info.c index f4819de8..ee811190 100644 --- a/src/menu/views/file_info.c +++ b/src/menu/views/file_info.c @@ -12,7 +12,7 @@ static const char *patch_extensions[] = { "ips", "aps", "pps", "xdelta", NULL }; 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 *dexdrive_extensions[] = { "mpk", "pak", NULL }; static const char *emulator_extensions[] = { "emu", NULL }; diff --git a/src/menu/views/joypad_controller_pak.c b/src/menu/views/joypad_controller_pak.c index ba086763..03d05706 100644 --- a/src/menu/views/joypad_controller_pak.c +++ b/src/menu/views/joypad_controller_pak.c @@ -63,7 +63,7 @@ static void draw (menu_t *menu, surface_t *d) { "\n" "\n" "Controller Pak (1).\n" - "Free space: %d blocks" + "Free space: %d blocks \n" "Entries: \n%s", cpak_info.free_space, format_entries_info(cpak_info.entries)