TAStudio: access CurrentTasMovie before stopping it
fixes 4c39a81228
- closes #3973
This commit is contained in:
parent
5fd3575c0f
commit
cc1b9c5903
|
@ -106,9 +106,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (CurrentTasMovie != null)
|
if (CurrentTasMovie != null)
|
||||||
{
|
{
|
||||||
|
bool loadRecent = Game.Hash == CurrentTasMovie.Hash && CurrentTasMovie.Filename == Settings.RecentTas.MostRecent;
|
||||||
TastudioStopMovie();
|
TastudioStopMovie();
|
||||||
// try to load the most recent movie if it matches the currently loaded movie
|
// try to load the most recent movie if it matches the currently loaded movie
|
||||||
if (Game.Hash == CurrentTasMovie.Hash && CurrentTasMovie.Filename == Settings.RecentTas.MostRecent)
|
if (loadRecent)
|
||||||
{
|
{
|
||||||
LoadMostRecentOrStartNew();
|
LoadMostRecentOrStartNew();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue