Commit Graph

173 Commits

Author SHA1 Message Date
adelikat 68e300e7a2 Fix FCEUI_MovieGetInfo. It was keeping info.reset from being initialized and causing garbage to be used to determine if a movie began from soft-reset. As such the Win32 replay dialog was always reporting savestate movies as soft-reset. 2010-05-25 03:09:53 +00:00
adelikat 0fdd04954e Fix playmovie from beginning for movies that begin with savestate. 2010-05-25 02:34:10 +00:00
adelikat 1aafbe1a62 Fixed so that Play movie from beginning has no affect on a movie that starts from a savestate rather than attempting to and using a power cycle to do it. TODO: properly replay a movie from beginning that starts from savestate. 2010-05-25 00:50:27 +00:00
adelikat 642ef6e568 frame counter turns red on MOVIEMODE_FINISHED 2010-05-19 03:46:52 +00:00
adelikat 88e7627162 Remove stopmovie() on old savestate load attempt when a movie is active. The error checking prevents anything destructive from happening so there is no reason to stop the movie. 2010-05-18 18:10:17 +00:00
adelikat fdbbb5bbc0 Implemented a "full savestate-movie load" mode similar to the implementation in VBA-rr & SNES9x-rr.
In this mode loading a savestate in read+write doesn't truncate the movie to its frame count immediately.  Instead it waits 

until input is recording into the movie (next frame).  For win32 this feature is togglable in movie options and the context 

menu.  For SDL this is off by default and a toggle will need to be added.
2010-05-18 15:31:53 +00:00
adelikat 8f222b3c91 More efficient if logic in CheckTimlines(). Added a flag for a feature of full copy savestates. This is a VBA/SNES9x type feature where a savestates full movie content can be loaded in read+write. Those emulators perform this option with a bit of trickery by not truncating the movie data until the next frame. Instead we are going to give the user an option to use this mode through the user interface. 2010-05-18 12:54:54 +00:00
adelikat fb579eb4b2 Made gamepad 2 off by default. 2010-05-18 04:52:05 +00:00
adelikat cec1766f34 Read-only loadstate - revert a logic error I had in determining a "future event" error. 2010-05-18 04:07:25 +00:00
zeromus 4e66aaef9c replace most of the crappy iostream stuff with EMUFILE 2010-05-17 21:02:38 +00:00
adelikat fb1240c262 Fixed the timeline checking function. The mistake was assuming that FCEUX didn't save the entire movie in a savestate. Now that I know it does, the fix was rather simple. 2010-05-17 15:51:11 +00:00
adelikat 7480101827 Timeline error messages now report the frame where the savestate branches from the movie file. 2010-05-16 19:26:29 +00:00
ugetab 046617c693 Added player 3 and 4 to autohold notification window. Made FCEU_DispMessage able to display to different screen locations to do it. Fixed up the input display code for autohold.
Wow, that's a lot of stuff changed for something so basic.
2010-05-16 04:18:49 +00:00
adelikat a1a74c6e9c Implemented read+write logic for handling a "post movie" savestate. Also fixed a slight error where rerecordcount wouldn't increment if _S9XLUA_H is not defined. 2010-05-16 01:46:04 +00:00
adelikat 7e48d40dfc This should be the final step in proper post-movie savestate loading. 2010-05-16 01:23:01 +00:00
adelikat 7c06c4d2ab Fixed up more loadstate logic. We had a slight logic error this whole time that wasn't a problem until now. Checking to see if a state is a future event, we assumed frame counter of the state matched the length of the movie. Now that movie finished is a mode, that is no longer true. Fixed that, and fixed the input display updating at the end of a load state to always look at the state input rather than the statemovie last record. This fixes proper behavior of saving and loading states during movie finished mode as per the "Laws of TAS": http://tasvideos.org/Adelikat/LawsOfTAS.html 2010-05-15 21:22:16 +00:00
adelikat 473b954991 Cleaned up some logic with read-only saving/loading and better error handling. Also made movie finished mode save movie content. 2010-05-15 18:09:11 +00:00
adelikat dc61c4c414 Better error handling in the event of wrong timeline. Loadstate is canceled, error message displayed, and movie continues playing. 2010-05-15 04:24:29 +00:00
adelikat 1415fb402c Revert some changes to MovieRecord class. savestate vector is de-pointered & public again as well. 2010-05-15 04:08:16 +00:00
adelikat 2cd959fd84 More robust way to handle previous fix. Put the string manipulations into generic functions in common.cpp 2010-05-15 02:38:32 +00:00
adelikat e8bed97821 Replay dialog, when selecting a movie in a relative path (.\movies for example), the recent movies list stores an absolute path instead. 2010-05-15 02:06:15 +00:00
adelikat 191196a2bb Win32 - When recording a movie, add it to recent movies 2010-05-15 01:48:53 +00:00
adelikat 6c474065fe Fix typo in command button checking of the compare() method 2010-05-15 01:40:39 +00:00
adelikat ddcd8f3566 Overhaul of MovieRecord class so it has a default contructor that initializes everything to 0, A deconstructor, and a get method for savestate vector. Fixes my timeline issues, but creates crash problems in TASEdit related to the deconstructor. 2010-05-15 01:05:42 +00:00
adelikat 691662f4c9 Make last commit compile, also replace command comparing methods 2010-05-14 23:51:42 +00:00
adelikat d5aa6a69b2 An attempt add doing "timeline" checks on movie savestates while in read-only mode. Commented out the function call since it isn't performing as expected. 2010-05-14 23:31:47 +00:00
adelikat 06b37466c2 new PPU flag - changed "New PPU" to "NewpPU", made flag false if no flag is present in a movie header. Win32 - replay dialog - display new PPU flag. 2010-05-14 16:55:15 +00:00
adelikat f4e01e6e77 New PPU flag in movie headers (doesn't change an emulators PPU state when loading a movie) 2010-05-14 16:03:07 +00:00
adelikat 31ec231d1f MOVIEMODE_FINISHED should not store movie data into savestate. 2010-05-14 14:44:14 +00:00
adelikat 49d1ebd9a3 Uncommented a rather useful loadstate error message 2010-05-14 13:56:41 +00:00
adelikat f04cb475a4 removing the change that caused movie data to be dumped binary by default. We want text until we make a toggle option where a user can select binary. 2010-05-13 13:46:11 +00:00
adelikat 912e375d0e Read only toggle displays more informative message (informs user if movie is finished or there is no movie loaded) 2010-05-12 16:05:36 +00:00
adelikat 9006fd7a73 Movies now have a "finished" option. If a playback stops the movie isn't cleared from memory, and can be replayed or a state loaded. Similar functionality as DeSmuME and GENS rerecording. 2010-05-12 15:31:24 +00:00
ugetab 40423f46a0 Fixed several LUA savestate issues, including crashes and silent failures, and added savestate.object(), which is savestate.create() with intuitive save state ordering. Also documented it. 2010-05-09 02:02:20 +00:00
ugetab 8c58b23e77 Further normalized all of the Open/Save dialog filters, and static_cast several annoying warnings into oblivion. 2010-05-08 02:30:40 +00:00
ugetab 8c379b7bba Added microphone button support to the Config>input dialog(replaces Port 2 Start button), the config file info, and the movie file header. Tested in 3 or 4 games, where it performed accurately.
I'll add the documentation later.
2010-04-28 19:25:52 +00:00
mart0258 ed6a9b0684 FCEUI_MoviePlayFromBeginning() - prevent movie-loading delay.
MovieRecord::dump() - handle binary movies.
2010-04-28 04:50:32 +00:00
mart0258 fd9b3a2978 Slight performance boost to re-recording savestates. 2010-04-28 03:13:33 +00:00
ugetab 1ff2b3d892 lua functions movie.ispoweron() and movie.isfromsavestate() fixed. 2010-04-21 21:10:17 +00:00
mart0258 bb51d75e22 Remove one of a few slowdown bugs when reading movie files 2010-04-02 04:34:12 +00:00
mart0258 c1590b3a1b w32-Tasedit: Enable insert frames, improve greenZoneCount stability, TAS fastforward performance boost. 2010-03-09 03:40:10 +00:00
adelikat 135612a3bd else if, not if 2010-03-04 02:03:33 +00:00
adelikat 86f60b1371 Movie file format header now has a FDS flag. 2010-03-02 04:59:45 +00:00
mart0258 4e3f25c906 w32 - Tasedit - Allow requests to fast forward to frame past greenzone, and skip non-essential updates to improve speed. 2009-12-27 20:44:39 +00:00
qeed 03bb053a7f fix compile error for linux 2009-12-18 17:02:23 +00:00
mart0258 60ff9e4627 fix compilation error 2009-12-18 15:16:16 +00:00
mart0258 f0b33ec203 Win - TASEdit updates - display readonly in-window and allow saving greenzone. 2009-12-18 05:40:38 +00:00
mart0258 7774d786cb Win32 - TasEdit - Adding functionality to interface items. 2009-11-14 02:46:03 +00:00
mart0258 e2248ca404 win32-tasedit: Added mid-movie start for start mid-movie (WIP), and to build greenzone by fast forward. 2009-11-08 05:07:28 +00:00
gocha 493e086850 vs200x: print svn revision number in version string. 2009-10-08 13:48:15 +00:00