Commit Graph

1409 Commits

Author SHA1 Message Date
adelikat aa42fa2369 Win32 - Hooked up SingleInstanceMode to a checkbox in GUI config. 2010-05-20 02:16:57 +00:00
ugetab b68d9a91b8 Added Single Instantiation mode, which makes starting a second copy of FCEUX with a path to a game make it load the file into the first, then exit. To enable, set SingleInstanceOnly 1 in the config file. If someone else wants to edit things to make this easy on the user, go for it. If started with nothing in the command line, it will simply start a second copy. 2010-05-19 21:51:25 +00:00
zeromus bca41a8c4b fix up opening roms from archives 2010-05-19 16:26:26 +00:00
adelikat 642ef6e568 frame counter turns red on MOVIEMODE_FINISHED 2010-05-19 03:46:52 +00:00
adelikat 83fb3e9ffa Code cleanup - moved ppu toggling to a function called FCEU_TogglePPU() in fceu.cpp 2010-05-19 02:12:11 +00:00
qeed ccf831a2fb fixed fceud_fstream to use EMUFILE to open the file, should be compilable again 2010-05-18 19:00:54 +00:00
qeed 11e94c3e99 fixed 2 compile errors for gcc, more awaits.. 2010-05-18 18:22:20 +00:00
adelikat da875309c1 Win32 - Add messages to screen & messagelog on PPU change. 2010-05-18 18:20: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 5993feb80c Getting the ball rolling on replacing the movie savestate ostream usage. Porting over the emufile class for desmume. Had to impport its types.h as types-des.h to get it to compile. Added the files to both the vc9 & vc10 proj files. 2010-05-16 19:41: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 64fd9f0c44 Fixed the input display auto hold code I put in yesterday, and optimized the code slightly. 2010-05-16 14:23:23 +00:00
gocha ffb708a23e RAM Search: fix reset to update previous values
RAM Search: redraw the list when search size/format is changed.
Probably those are common bugs of the Gens-style RAM search dialog.
2010-05-16 10:26:11 +00:00
ugetab e277aa9e24 Improved the Hold status display considerably. 2010-05-16 04:50:56 +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 a56ad34cea Mostly implemented auto-hold input display, only controller 1 works completely. 2010-05-16 03:18:17 +00:00
adelikat 0aa8d22ca5 Attempt at auto-hold in input display 2010-05-16 02:34:51 +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
ugetab a874412b61 Added option for palette selection as color for LUA colors. Included an LUA script to display all choices with the value used to pick displayed color.
Documented new color option and missing gui.text information.
2010-05-15 05:03:53 +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 320223bd29 Win32 - Replay dialog shows pal flag 2010-05-14 16:21:03 +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 5a222bf49f better blend color for input dislpay, enough contrast that I can still tell on my bad monitor. 2010-05-14 03:24:05 +00:00
adelikat cf7e73cf98 Win32 - toggle item to restore old input display (saves in config as well) 2010-05-14 03:18:08 +00:00
adelikat 5eeb0b3684 input display overhaul - a more desmume style system which shows both keys held the previous frame and immiately held keys that will be put in on the next frame 2010-05-14 03:09:27 +00:00
ugetab bd5933dd68 Further optimization, now that I know the code functions and have something to fall back to if I mess up. 2010-05-13 21:08:37 +00:00
ugetab 816da56c87 Figured out a way to test joypad input without having one(PPJoy w/ Print Screen mapped to a button), and took out some redundant code. 2010-05-13 20:03:57 +00:00
ugetab e9bb9102ae Added rudamentry Between-Frames input display code for adelikat to customize. He said he had everything except the keyboard query done, so this should make it simple for him to pretty it up. 2010-05-13 19:33:27 +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 8610f4ffb5 minor fix to last commit 2010-05-13 04:03:22 +00:00
adelikat 33ea23fee3 Input Display - displays a silver color when input is from a movie rather than the user 2010-05-13 03:53:20 +00:00
adelikat a832f49204 Win32 - Context menu - only display dynamic subtitle menu items if there are subtitles in the movie loaded. Document the dump to SRT context menu item. 2010-05-13 03:15:06 +00:00
ugetab 6b963affea With special scaler in window mode, it's possible to resize to anything above the minimum. Fixed the special scaler minimum testing, and I think someone forgot a pair of brackets some time ago. 2010-05-12 18:43:04 +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
adelikat 4456368632 Loadstate now updates input display even with no movie loaded. 2010-05-12 13:06:23 +00:00
ugetab 14d628ff81 Conflicted with my own commit. Repaired conflicted files, and made sure about the code removal I intended as well. 2010-05-12 03:53:15 +00:00
adelikat 91e4d77283 Somehow a tortoise 'conflict' got committed 2010-05-12 03:23:37 +00:00
adelikat b5ea58271b Fixed so that loadstate updates input display during movie playback as well. 2010-05-12 03:14:41 +00:00
ugetab 6131a6ea79 Added Ram Search hot keys. Replaces previous committed Cheat Dialog hot keys. 2010-05-12 03:09:56 +00:00
adelikat 952320e1df Loadstate updates input display if movie is recording 2010-05-12 03:07:03 +00:00
ugetab 659684b936 Added hotkey options for the cheat dialog buttons Equal, Not Equal, Greater Than, and Less Than. Doesn't allow use of the checkbox options using hotkeys. 2010-05-11 22:12:49 +00:00
ugetab 3a750d276e Found a way around an inefficient comparison method I was using. 2010-05-10 23:06:25 +00:00
ugetab ef4af2ff0e Updated the Listbox Context Menu code to account for the context menu keyboard key. Thanks zeromus. 2010-05-10 22:50:21 +00:00
ugetab 0a2e4bf547 Added a context menu to the debugger breakpoint list(toggle only), and edited the description for the cheat toggle item a little. 2010-05-10 19:07:06 +00:00
ugetab 6c991885bf Added a few options to emu.getscreenpixel. Can now fully distinguish between LUA and Emu pixels, or ignore distinction. 2010-05-10 16:52:27 +00:00
ugetab a8016502b0 Added gui.getpixel() and emu.getscreenpixel() to get LUA pixel written. Also fixed some coding misconceptions about how LUA worked for Game Genie Add/Delete functions. Documented stuff. 2010-05-10 07:20:55 +00:00
ugetab da1da1c675 Optimized Unfreeze All Addresses routine in Hex Editor 2010-05-09 15:28:15 +00:00
ugetab 027c4eebb5 Added "Dump Subtitles to SRT file" context menu item. Only appears for movies with subtitles. Only tested with 1 movie, but it worked almost perfectly, except that site videos have a TASVideos intro that will have to be accounted for. 2010-05-09 06:31:06 +00:00
ugetab a24932ceff Added right-click subtitle toggle to movies with subtitles, and probably forgot to save the help file before the last commit. 2010-05-09 03:30:14 +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 a5a1af821a Added emu.addgamegenie() and emu.delgamegenie() functions to LUA. Documented them as well. Took the todo out of a few comments too. 2010-05-08 20:34:27 +00:00
CaH4e3 f0a3f8cf21 redundant code removed, let windows doing it on by own 2010-05-08 09:27:42 +00:00
ugetab c136fcfa1e Added something to automatically add an extension to the filename in the dialog window. I think I'm going to make CaH4e3 mad at me too. 2010-05-08 08:30:16 +00:00
CaH4e3 111cc48167 DefExt enabled again 2010-05-08 08:24:30 +00:00
ugetab a6e42d8e5c Decided that one of the static_cast was in danger of causing an error, so I altered the other test instead. 2010-05-08 02:39:07 +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 61fd43ab95 1. Added context menu to Cheat Dialog Cheat Listbox
2. Populated list with Toggle Cheat, Poke Cheat Value, and Goto In Hex Editor
3. Fixed Hex Editor Color Display code. I was overflowing it before.
4. Made enabling/disabling cheats no longer deselect the selected cheat.
2010-05-08 00:04:26 +00:00
ugetab 4b4cf0723d Added metadata loading(right-click during playback, 'View comments and subtitles') for recent movies, last played movie, and drag-n-drop movies, and likely managed any others that I didn't try as well. 2010-05-07 02:37:02 +00:00
adelikat dd0d5df80b Add a GetPath() function to common.cpp since there seems to be a lot of variations of that code floating around the codebase. 2010-05-07 02:06:49 +00:00
ugetab 5d24f21a42 Got Add Cheat button working in Ram Search and Ram Watch. 2010-05-06 23:47:57 +00:00
ugetab 672c187177 Added 'AddExtensionIfMissing', which replaces every other means of adding a missing extension to a file, and allows one to use All File to save with any extension. Added 'All Files' option to all dialogs that didn't have it. Uses the file extension a user manually selects to pick what extension to add to a filename.
Also did other save dialog optimizations and normalizations, because I was looking at all of them over and over again.
2010-05-06 21:48:23 +00:00
ugetab 63ad8f4bbf Made the Hex Editor display the Frozen, Bookmarked, etc. status of the selected address, and made the Frozen color override the Bookmarked color. 2010-05-06 18:08:25 +00:00
adelikat 9562855f09 SDL - fix compile when no GTK, addresses issue 2997371 2010-05-06 11:46:51 +00:00
ugetab ee554ce2f1 Debugger no longer 'Always On Top' after using 'Restore original window size' button in debugger. 2010-05-06 01:07:49 +00:00
ugetab 05c76ec6c2 1. Debugger no longer reloads itself to load new game .DEB data
2. Added checkbox for .DEB loading
3. Updated Symbolic Debugging info in help documents
4. Made bookmarks work (need to check the rest of the //MBG TODO items too)
2010-05-06 00:34:45 +00:00
ugetab 821424be42 Added DefExt to one more file save routine. 2010-05-05 14:31:39 +00:00
punkrockguy318 2f0651c7cc sdl: fixed a bug introduced in r1744; i think qeed committed changes to an older version of the file or something; all is well now
the bug slowed the emulation speed down to 2%
2010-05-05 08:29:37 +00:00
CaH4e3 52f6cdf5be make previous fixes more windows specific ;) why not let windows handle this instead of doing it by own hand?
filled all defext options for all save dialogs
2010-05-05 08:22:31 +00:00
ugetab 0bbf59739b Neglected to save a change for the last commit. 2010-05-05 05:59:51 +00:00
ugetab 40eff5685b Added basic default extensions to a few save dialogs that were missing them. Addresses bug 2996917. 2010-05-05 05:55:00 +00:00
ugetab cbfd453bcd Added a sanity check to the GotoAddress code, because some users have none. 2010-05-05 05:02:23 +00:00
ugetab b7fc64fe7e Added Goto command for Hex Editor. 2010-05-04 16:33:20 +00:00
ugetab 4278ff2b27 Made an error when adding Conditional Debugging Option 'K'. Fixed it. Addresses bug 2996334. 2010-05-04 06:52:35 +00:00
ugetab a05a4b4b0f Made the SDL version create the directory "movies" instead of "movie" 2010-05-02 23:26:52 +00:00
qeed fa7212435b fix small text alignment on printing help 2010-05-01 21:23:03 +00:00
qeed 5308b98264 p2mic thing 2010-05-01 21:17:42 +00:00
ugetab da1a1c7b61 This input.h addition proved useless. 2010-05-01 20:34:54 +00:00
ugetab 1f70280225 Dealt with bug 2746888. LUA now CDs to folder of LUA file on load. Added working Windows CD code, and test *NIX CD code. *NIX code still needs to be confirmed. 2010-05-01 18:48:42 +00:00
ugetab 0613eb2163 Addressed bug 2995032. LUA now throws a maximum of 8 errors when stopping a script. 2010-05-01 16:42:06 +00:00