Make "Autopause at end of Movie" work in TAStudio
The option has been there forever and never seemed to work. I tried to set it up in MovieSession and tastudio settings and failed.
see also #3989
This cannot be fixed without first fixing #2292 since currently the end of the movie is not reachable during normal playback in TAStudio (is reachable in recording mode though).
How is this supposed to work? Because of the way TAStudio works, when you're at the end of the movie, the movie will continually extend. So effectively you're always "at the end of the movie".
The way this works for normal movies is by detecting whether or not the movie is recording mode: In recording mode, the movie is silently extended, and autopause only has an effect while in play mode. However TAStudio does not enter recording mode upon reaching the end of the movie, so you'd get a pause every frame.
Pause the frame before the end of the movie then.
Here's how taseditor does it (reliable source since it's been done there first, and it has no bugs)
https://github.com/TASEmulators/fceux/blob/f980ec2bc7dc962f6cd76b9ae3131f2eb902c9e7/src/drivers/win/taseditor/playback.cpp#L177-L182 https://github.com/TASEmulators/fceux/blob/f980ec2bc7dc962f6cd76b9ae3131f2eb902c9e7/src/drivers/win/taseditor/playback.cpp#L229-L236