Don't allow drag and drop of a movie file if a movie is already active
This commit is contained in:
parent
fdc9ea2aa9
commit
a26e36719a
|
@ -2390,9 +2390,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
else if (MovieService.IsValidMovieExtension(ext))
|
||||
{
|
||||
if (!Global.MovieSession.Movie.IsActive)
|
||||
{
|
||||
StartNewMovie(MovieService.Get(filePaths[0]), false);
|
||||
}
|
||||
}
|
||||
else if (ext.ToUpper() == ".STATE")
|
||||
{
|
||||
LoadState(filePaths[0], Path.GetFileName(filePaths[0]));
|
||||
|
@ -2415,6 +2418,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
else if (MovieImport.IsValidMovieExtension(Path.GetExtension(filePaths[0])))
|
||||
{
|
||||
if (!Global.MovieSession.Movie.IsActive)
|
||||
{
|
||||
//tries to open a legacy movie format by importing it
|
||||
if (CurrentlyOpenRom == null)
|
||||
|
@ -2443,6 +2448,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
GlobalWin.OSD.AddMessage(warningMsg);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LoadRom(filePaths[0]);
|
||||
|
|
Loading…
Reference in New Issue