9.6 Branch - 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:34:17 +00:00
parent fd1a7c0a72
commit 06e73caa3f
1 changed files with 2 additions and 0 deletions

View File

@ -4173,6 +4173,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
}