Fixed TasMovie not loading on TAStudio startup.
This commit is contained in:
parent
805ff14cc0
commit
2409d03974
|
@ -12,6 +12,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_currentTasMovie == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_currentTasMovie.IsRecording)
|
if (_currentTasMovie.IsRecording)
|
||||||
{
|
{
|
||||||
TasView.LastVisibleIndex = _currentTasMovie.InputLogLength - 1;
|
TasView.LastVisibleIndex = _currentTasMovie.InputLogLength - 1;
|
||||||
|
|
|
@ -97,8 +97,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void NewTasMovie()
|
private void NewTasMovie()
|
||||||
{
|
{
|
||||||
Global.MovieSession.Movie = new TasMovie();
|
Global.MovieSession.Movie = new TasMovie();
|
||||||
_currentTasMovie.PropertyChanged += TasMovie_OnPropertyChanged;
|
|
||||||
_currentTasMovie = Global.MovieSession.Movie as TasMovie;
|
_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.Filename = DefaultTasProjName(); // TODO don't do this, take over any mainform actions that can crash without a filename
|
||||||
_currentTasMovie.PopulateWithDefaultHeaderValues();
|
_currentTasMovie.PopulateWithDefaultHeaderValues();
|
||||||
_currentTasMovie.ClearChanges();
|
_currentTasMovie.ClearChanges();
|
||||||
|
|
Loading…
Reference in New Issue