diff --git a/ps3/menu-port-defines.h b/ps3/menu-port-defines.h index 0767607974..3c0c669afa 100644 --- a/ps3/menu-port-defines.h +++ b/ps3/menu-port-defines.h @@ -16,9 +16,6 @@ * If not, see . */ -/* allowed ROM extensions - ROMs are separated by a '|' character */ -#define ROM_EXTENSIONS "smc|fig|sfc|gd3|gd7|dx2|bsx|swc|zip|SMC|FIG|SFC|BSX|GD3|GD7|DX2|SWC|ZIP" - #define FONT_SIZE 1.0f #define EMU_MENU_TITLE "SSNES |" #define VIDEO_MENU_TITLE "SSNES VIDEO |" diff --git a/ps3/menu.c b/ps3/menu.c index a715a2cb3f..ee79e12696 100644 --- a/ps3/menu.c +++ b/ps3/menu.c @@ -23,6 +23,8 @@ #include "cellframework2/input/pad_input.h" #include "cellframework2/fileio/file_browser.h" +#include "../console/rom_ext.h" + #include "ps3_video_psgl.h" #include "shared.h" @@ -1275,7 +1277,7 @@ static void select_rom(void) } if (CTRL_START(button_was_pressed)) - filebrowser_reset_start_directory(&browser, "/", ROM_EXTENSIONS); + filebrowser_reset_start_directory(&browser, "/", ssnes_console_get_rom_ext()); if (CTRL_CROSS(button_was_pressed)) { @@ -1342,7 +1344,7 @@ static void select_rom(void) void menu_init (void) { - filebrowser_new(&browser, "/", ROM_EXTENSIONS); + filebrowser_new(&browser, "/", ssnes_console_get_rom_ext()); } void menu_loop(void)