tastudio: stop crashing upon movie platform mismatch

make the error window topmost
This commit is contained in:
feos 2017-02-19 00:26:25 +03:00
parent 61e8b51802
commit 60d69db588
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ namespace BizHawk.Client.EmuHawk
} }
catch (MoviePlatformMismatchException ex) catch (MoviePlatformMismatchException ex)
{ {
MessageBox.Show(this, ex.Message, "Movie/Platform Mismatch", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(new Form(){TopMost = true}, ex.Message, "Movie/Platform Mismatch", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false; return false;
} }

View File

@ -648,7 +648,8 @@ namespace BizHawk.Client.EmuHawk
movie = CurrentTasMovie; movie = CurrentTasMovie;
SetTasMovieCallbacks(movie as TasMovie); SetTasMovieCallbacks(movie as TasMovie);
bool result = Mainform.StartNewMovie(movie, record); bool result = Mainform.StartNewMovie(movie, record);
CurrentTasMovie.TasStateManager.Capture(); // Capture frame 0 always. if (result)
CurrentTasMovie.TasStateManager.Capture(); // Capture frame 0 always.
TastudioPlayMode(); TastudioPlayMode();
_initializing = false; _initializing = false;