fixed segfault when opening fcm files; will now warn user to open fm2 files

This commit is contained in:
punkrockguy318 2008-08-12 08:24:39 +00:00
parent 641a5ea657
commit 5e44ec6f4a
2 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,5 @@
---version 2.0.2 released---
12-aug-2008 - punkrockguy318 - SDL: fixed segfault when opening .fcm files
12-aug-2008 - punkrockguy318 - SDL: Saner sound defaults for less choppy sound
12-aug-2008 - punkrockguy318 - SF [ 2047050 ] SDL: "--special" option fixed for special video scaling filters
12-aug-2008 - zeromus - SF [ 2046984 ] Player 3 inputs when not used

View File

@ -296,11 +296,18 @@ KeyboardCommands()
if(is_shift) {
FCEUI_StopMovie();
std::string fname;
fname = GetFilename("Open movie for playback...");
fname = GetFilename("Open FM2 movie for playback...");
if(fname != "")
{
FCEUI_printf("Playing back movie located at %s\n", fname.c_str());
FCEUI_LoadMovie(fname.c_str(), false, false, false);
{
if(fname.find(".fm2") != std::string::npos)
{
FCEUI_printf("Playing back movie located at %s\n", fname.c_str());
FCEUI_LoadMovie(fname.c_str(), false, false, false);
}
else
{
FCEUI_printf("Only FM2 movies are supported.\n");
}
}
} else {
FCEUI_LoadState(NULL);