9.6 Branch - Win32 Drag & Drop - if .dsm file is dropped with no ROM loaded prompt for one.
This commit is contained in:
parent
fd1a7c0a72
commit
06e73caa3f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue