make autopause at tend of movie work in tastudio
- closes #2622 not sure if this should always apply or only in playback mode but probably doesn't matter too much. Also changed the default to false because that's what it's effectively been for many years
This commit is contained in:
parent
69862fef70
commit
861166080f
|
@ -20,6 +20,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
private bool _initializing; // If true, will bypass restart logic, this is necessary since loading projects causes a movie to load which causes a rom to reload causing dialogs to restart
|
||||
|
||||
private int _lastRefresh;
|
||||
private bool _doPause;
|
||||
|
||||
private void UpdateProgressBar()
|
||||
{
|
||||
|
@ -93,6 +94,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
refreshNeeded = true;
|
||||
}
|
||||
|
||||
if (Settings.AutoPause)
|
||||
{
|
||||
if (_doPause && CurrentTasMovie.IsAtEnd()) MainForm.PauseEmulator();
|
||||
_doPause = !CurrentTasMovie.IsAtEnd();
|
||||
}
|
||||
|
||||
RefreshDialog(refreshNeeded, refreshBranches: false);
|
||||
UpdateProgressBar();
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
public TAStudioSettings()
|
||||
{
|
||||
RecentTas = new RecentFiles(8);
|
||||
AutoPause = true;
|
||||
AutoPause = false;
|
||||
FollowCursor = true;
|
||||
ScrollSpeed = 6;
|
||||
FollowCursorAlwaysScroll = false;
|
||||
|
|
Loading…
Reference in New Issue