Fixed TasMovie not loading on TAStudio startup.

This commit is contained in:
kylelyk 2014-08-23 20:17:06 +00:00
parent 805ff14cc0
commit 2409d03974
2 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,11 @@ namespace BizHawk.Client.EmuHawk
return;
}
if (_currentTasMovie == null)
{
return;
}
if (_currentTasMovie.IsRecording)
{
TasView.LastVisibleIndex = _currentTasMovie.InputLogLength - 1;

View File

@ -97,8 +97,8 @@ namespace BizHawk.Client.EmuHawk
private void NewTasMovie()
{
Global.MovieSession.Movie = new TasMovie();
_currentTasMovie.PropertyChanged += TasMovie_OnPropertyChanged;
_currentTasMovie = Global.MovieSession.Movie as TasMovie;
_currentTasMovie.PropertyChanged += new PropertyChangedEventHandler(this.TasMovie_OnPropertyChanged);
_currentTasMovie.Filename = DefaultTasProjName(); // TODO don't do this, take over any mainform actions that can crash without a filename
_currentTasMovie.PopulateWithDefaultHeaderValues();
_currentTasMovie.ClearChanges();