Fix error message when file cannot be opened.

This commit is contained in:
Themaister 2011-01-08 14:40:54 +01:00
parent 12ebdacd12
commit e5d2df13e7

View File

@ -329,7 +329,7 @@ static void parse_input(int argc, char *argv[])
g_extern.rom_file = fopen(argv[optind], "rb");
if (g_extern.rom_file == NULL)
{
SSNES_ERR("Could not open file: \"%s\"\n", optarg);
SSNES_ERR("Could not open file: \"%s\"\n", argv[optind]);
exit(1);
}
if (strlen(g_extern.savefile_name_srm) == 0)