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:
Morilli 2025-03-25 04:38:23 +01:00
parent 69862fef70
commit 861166080f
2 changed files with 8 additions and 1 deletions

View File

@ -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();
}

View File

@ -65,7 +65,7 @@ namespace BizHawk.Client.EmuHawk
public TAStudioSettings()
{
RecentTas = new RecentFiles(8);
AutoPause = true;
AutoPause = false;
FollowCursor = true;
ScrollSpeed = 6;
FollowCursorAlwaysScroll = false;