made movie opener more robust from command line as well

This commit is contained in:
punkrockguy318 2008-08-12 08:27:44 +00:00
parent 5e44ec6f4a
commit 4f4f771661
1 changed files with 5 additions and 1 deletions

View File

@ -460,7 +460,11 @@ SDL_GL_LoadLibrary(0);
g_config->getOption("SDL.Movie", &fname);
if (fname != "")
{
FCEUI_LoadMovie((char*)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);
}
g_config->setOption("SDL.Movie", "");
}