Commit Graph

223 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
gocha 41ab92edb3 movie dialog: changed framerate from 60 (or 50 for PAL games) to real framerate.
movie: fixed the initial value of rerecord count. it should be 0, not 1.
2009-10-01 14:59:41 +00:00
zeromus 9813608af3 add fds insert/select recording 2009-08-03 22:24:59 +00:00
adelikat 9ee1449a74 Win32 - new Context Menu item - Save Movie As.. available when a movie is loaded in read+write mode. 2009-05-25 20:30:32 +00:00
adelikat b7cdece19f Win32 - Hooked up remove recent item function to the movie recent menu & load last movie context menu item. 2009-05-25 18:17:19 +00:00
adelikat c771ac2d6d Win32 - Recent Movie Menu added 2009-05-25 15:42:24 +00:00
adelikat 33d0a03b34 Win32 - Stop movie at frame x feature - fixed off by 1 error 2009-05-04 13:38:41 +00:00
shinydoofy a8b61ea489 SDL: added --ripsubs 2009-04-23 21:34:30 +00:00
adelikat 5c4579f859 Lua - added movie.getname() 2009-03-15 23:46:57 +00:00
adelikat 8768ea1c5e Lua - added FCEU.setreadonly() 2009-03-15 23:21:52 +00:00
adelikat ee99847b35 Lua - added movie.rerecordcount() and movie.length() 2009-03-15 21:12:15 +00:00
adelikat a5ff19b58c Lua - added FCEU.lagged() function 2009-03-08 19:14:37 +00:00
adelikat e43366247a Lua - added FCEU.lagcount() function 2009-03-07 19:26:07 +00:00
adelikat 130fee0f22 Auto-save flag tweaks, Win32-context menu-read only toggles added 2008-12-24 21:26:09 +00:00
adelikat c7c8ba8074 Very small change to backup movie message 2008-12-24 19:14:04 +00:00
adelikat 0a29e1bce3 Backup savestate fixes. 2008-12-23 21:28:06 +00:00
adelikat 93c48afbb6 Fixes to backup savestate system, starting of undo savestate implementation. 2008-12-23 20:29:27 +00:00
adelikat 20ef5a722c Backup savestate system added. CheckFileExists checks for null filename. 2008-12-23 03:54:31 +00:00
adelikat d8d239e35d Movie auto-back feature implemented 2008-12-23 01:07:55 +00:00
acmlm a1aaca5df1 - new font, slightly bigger with a blue background
- lua libraries loaded from "dll" subdirectory (on Windows)
2008-12-03 01:33:05 +00:00
punkrockguy318 6daefb7c46 fixed gcc compile error and made hotkeys consistant with docs
[[Split portion of a mixed commit.]]
2008-12-01 00:37:40 +00:00
adelikat 47236ddffa Movie subtitles can now be put in avi. Win32 - menu toggle item. 2008-11-24 00:45:25 +00:00
adelikat 57de01eb86 Subtitles have their own message function. 2008-11-23 23:49:15 +00:00
adelikat eb65e0122b Movie subtitle system installed 2008-11-23 21:28:22 +00:00
adelikat a2490c3b10 Clip Left and Right Sides option now taken into account when drawing messages on screen. 2008-11-16 04:38:19 +00:00
adelikat 8c174ae9b2 Oops, fixed the bug I introduced. Frame display toggle now works. 2008-11-14 13:35:01 +00:00
adelikat 0a5f20c034 Frame counter can now display when no movie is loaded. (If no movie, reset and power reset the counter to 0). 2008-11-11 22:58:29 +00:00
zeromus 67774c1322 change FCEUI_MovieGetInfo to not use a pointer 2008-11-11 00:02:22 +00:00
adelikat 13f02e79ec removed last_displayed_framenumber as it caused a frame counter bug 2008-11-05 01:49:53 +00:00
zeromus 6f4928726e reset/power recording and playback support. 2008-11-02 18:21:44 +00:00
shinydoofy d9ea2a263a added SDL avi creation support and changed speed throttling to use it 2008-10-25 12:36:03 +00:00
punkrockguy318 407f0f8663 optional lua in sdl 2008-09-24 06:06:31 +00:00
zeromus 117efd39ff SF [ 2058942 ] Load state as... does not use the savestate override dir (fixed; now, it does)
; permit user optionally to proceed through the movie savestate mismatch error condition, in case he knows what he is doing.
2008-08-19 04:48:45 +00:00
zeromus f6b541ce2f fix the issue phil discovered where loading a mismatched movie savestate causes an extra freaky chunk 0 error message. create code which would be helpful for turning mismatch error into ok/cancel, but didn't enable it.. not sure whether we want it 2008-08-18 20:34:59 +00:00
zeromus 8565ed8f4f print a special message when trying to open an FCM reminding user to convert. (finishes SF [ 2011832 ] Opening non movie file crashes FCEUX) 2008-08-12 06:58:52 +00:00
zeromus 3e983865df SF [ 2046985 ] SRAM not wiped on power cycle (during movies) 2008-08-12 06:52:48 +00:00
zeromus 41863383eb SF [ 2030405 ] Avi recording: no sound b0rks format 2008-08-10 08:59:23 +00:00
zeromus 1cb06319e9 SF [ 2040463 ] Add an "author" text field in the record movie dialog; also, fixes to the old savestate support concerning what to do when movie data is found 2008-08-10 04:03:50 +00:00
zeromus 8309deab65 perhaps gracefully handle loading an old savestate with an embedded movie 2008-08-10 03:19:59 +00:00
zeromus 3a0b893662 first attempt - support loading movies from archives. 2008-08-10 02:33:14 +00:00
zeromus 2c5a0a443a lagcounter added to savestate 2008-08-07 04:56:40 +00:00
zeromus 685c32af88 1st pass at restoring debugger snap functionality 2008-08-07 03:59:19 +00:00
punkrockguy318 a482fdce5d Fixed some issues with movie recording in sdl; however it's still sketchy 2008-08-02 17:22:28 +00:00
punkrockguy318 cbb5c8bc90 patch from bisquit to make savestates more efficient
also worked on the build system to accomidate for lua
2008-07-24 03:01:39 +00:00
zeromus cf65728642 lua!!!! 2008-07-23 06:54:14 +00:00
zeromus 81241b5d26 reorganize lagflag code 2008-07-10 04:55:52 +00:00
adelikat 584c444118 Lag Counter now has colors! 2008-07-10 03:21:04 +00:00
adelikat 3bff3154c7 Lag Counter on its own line (instead of added in with general messages) 2008-07-10 02:17:42 +00:00
zeromus fb26316f95 - update fm2 documentation/
- fix problem with video config in release build (upx was causing problems)
- change movie format to support '.' or ' ' for blanks, but produce '.' now instead of ' '
2008-07-04 21:09:49 +00:00
zeromus 43a490e67b fix freakout at end of tasedit movies 2008-06-29 16:24:37 +00:00
zeromus 033ae55048 - add 2nd player to tasedit
- fix bugs which broke movies with saveram which was added when 7zip was added
- fix bugs in tasedit insert and delete
2008-06-28 23:31:02 +00:00