(PS3) Use ssnes_console_get_rom_ext function in file browser

This commit is contained in:
TwinAphex51224 2012-01-25 03:11:21 +01:00
parent 05e49db12a
commit 1cc8a8a121
2 changed files with 4 additions and 5 deletions

View File

@ -16,9 +16,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
/* 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 |"

View File

@ -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)