Win32 Drag & Drop - if .dsm file is dropped with no ROM loaded prompt for one.

This commit is contained in:
adelikat 2010-04-21 14:41:43 +00:00
parent 77934940e2
commit 6b3438925c
1 changed files with 2 additions and 0 deletions

View File

@ -4187,6 +4187,8 @@ DOKEYDOWN:
//-------------------------------------------------------
if (!(fileDropped.find(".dsm") == string::npos) && (fileDropped.find(".dsm") == fileDropped.length()-4)) //ROM is already loaded and .dsm in filename
{
if (!romloaded)
OpenFile();
if (romloaded && !(fileDropped.find(".dsm") == string::npos)) //.dsm is at the end of the filename so that must be the extension
FCEUI_LoadMovie(fileDropped.c_str(), 1, false, false); //We are convinced it is a movie file, attempt to load it
}