From 06e73caa3f5d40b824fa4edfede13892a7d07776 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 21 Apr 2010 14:34:17 +0000 Subject: [PATCH] 9.6 Branch - Win32 Drag & Drop - if .dsm file is dropped with no ROM loaded prompt for one. --- desmume/src/windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 05700a8e5..b30fdb25f 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -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 }