Commit Graph

1808 Commits

Author SHA1 Message Date
adelikat abba87738f Fix input config for Gameboy, some small random work on ColecoHawk 2012-05-18 22:57:05 +00:00
zeromus 42715fdca7 rehabilitate the GB core: fix videoprovider and input system 2012-05-18 18:28:12 +00:00
adelikat 9c5f56308b Gameboy - fix the assigning of the active controller/autofire controller when loading a gameboy core (fixes crash when attempting to run a gameboy game) 2012-05-16 03:14:50 +00:00
brandman211 7ab8fe087a Fixed drop down labels in RAM Watch and Search. 2012-05-12 07:07:34 +00:00
brandman211 23b3cedf7d Removed the now redundant TargetZoomFactor scaling for drawRectangle. Drawn shapes now scale nicely. Whether or not text should be drawn this way is a worthwhile discussion IMO, but as zeromus has said, it would require text to be drawn in the same way like shapes. 2012-05-11 21:11:29 +00:00
goyuken 78a0494708 add WavWriter, writes standard WAV files for capture. For the moment, only available as its own IVideoWriter (that discards all video frames). Choose by selecting .wav format in the start avi capture file select dialog. 2012-05-11 17:00:44 +00:00
goyuken b35ab0d936 Add JMD to config.cs, and fix whitespace on JMDWriter.cs.
My editor whitespace settings are correct now, I promise!
2012-05-10 00:38:26 +00:00
goyuken a313d3910d Add sound output to sound card while dumping is occurring. Uses a proxy ISoundProvider (DualSound.cs) to guarantee emulation sound core and dumping routine are unaffected, while sending "best effort" sound to system output. Doesn't sound great, but simple and functional. 2012-05-09 20:21:23 +00:00
goyuken 35a9edc018 Refactor JMDWriter to be a bit less painful to read 2012-05-09 15:08:57 +00:00
goyuken d0ada9dbb3 AviWriter.cs: be informative if worker thread dies 2012-05-09 01:00:16 +00:00
goyuken d70a4e0a9c clarify some comments and add more comments to JMD code 2012-05-09 00:15:59 +00:00
goyuken 1980011952 Add user interface to select compression options (level and number of threads) for JMD dumper. 2012-05-08 22:19:12 +00:00
goyuken 037870eb43 Select between JMD and AVI at save file dialog. 2012-05-07 23:18:08 +00:00
goyuken ab6f9b175f Add JMDWriter.cs, dumps to JMD format. No 2G limit, and single segment even across multiple resolutions. Can use a bunch of cores, but still not terribly fast. Hasn't been hooked in to the UI yet; for testing, change MainForm.cs:2669 2012-05-07 21:45:25 +00:00
zeromus de0cdf1c3c add sharpziplib for gzip so we can make portable JMD dumping without relying on the native 7z.dll 2012-05-07 18:42:43 +00:00
goyuken cdd82cbb06 Rename VideoWriter IVideoWriter per zeromus 2012-05-06 22:18:16 +00:00
goyuken 02ca0e82e9 Create new interface VideoWriter, which AviWriter inherits from. Sets up for other video dumping systems. 2012-05-06 22:08:47 +00:00
zeromus 857d0a5b39 voila, "emu" resolution lua drawing, hacked in place of the native resolution drawing because rolanmen1 decided to destroy my surface management paradigms (i can tell because the earth is scorched with spaces instead of tabs) 2012-05-06 07:09:04 +00:00
brandman211 05157997f1 -Added a very basic fix to the graphics scaling issue per adelikat's advice.
--Gets worse as the scale increases.
--For x3, the box doesn't increase size, but the box still changes position. I think there might be a difference between the TargetZoomFactor and the actual screen size, so perhaps we should tie this to something else.
-Working on very small optimizations to the NES PPU with CorruptedSyntax...this is more fun, so we'll do this first.
--Eliminated an entire loop.
--Branched to two loops instead of branching for every iteration in one loop.
--Got rid of some redundant instructions using temporary variables.
--This may be completely premature, but I seem to have gained a few FPS from doing this. For me, I get 38-39 FPS where I'd previously get 33-34.
2012-05-06 04:09:28 +00:00
adelikat 059aebec8e ColecoHawk - set up ROM loading (bind .col to Coleco), set up preliminary controller garbage in 85 places for coleco 2012-05-06 00:54:13 +00:00
beirich 604a774118 Add 2 SMS homebrew and a GG prototype to gamedb 2012-05-05 22:43:11 +00:00
goyuken d964558856 Multithreaded AviWriter.cs
Moves calls to AVIStreamWrite() to a separate worker thread.  They are where all of the cpu time for video compression is used, so can give a decent speedup.  Could conceivably go slower on pathetic single core machines due to synchronization and copy overhead.
2012-05-05 14:52:23 +00:00
Rolanmen1 9b9a8546a5 Deleted the ClearDisplaySurface functions. If you just need to clear the graphics, call gui_ClearGraphics function in LuaImplementation. 2012-05-01 15:15:19 +00:00
Rolanmen1 2799d55f4a Now gui.drawNew and gui.drawFinish doesn't need to be invoked via Lua Scripts. However they are invoked every frame. Basically, this means that graphics are drawn and cleaned every frame. So, if you Pause/Stop a script, the graphics gets cleaned right away. 2012-05-01 14:43:17 +00:00
adelikat 22eec9c4d7 Archive Chooser - put (U) [!] roms at the top of the list 2012-04-30 01:26:37 +00:00
adelikat 54d1c873df Fix when guitext gets cleared, reduces most of the flickering and inconsistencies with ram watch on screen and lua gui.text, fix punchoutstats lua script 2012-04-30 01:14:23 +00:00
adelikat e60ba05e66 Gui.text - fix inverted default fore/back colors, fix lua scripts to use new gui.text parameter scheme 2012-04-30 00:45:37 +00:00
adelikat e0dc96abdc GUI Text / Ram Watch on screen display - fix inverted foreground and background colors 2012-04-30 00:30:44 +00:00
adelikat fffe30f4f9 Atari - add a version of Magicard to the gamedb 2012-04-29 19:40:28 +00:00
adelikat 25c2e45da8 movies - use Global.Game.System not Global.Emulator.SystemId for the System header when recording a new movie 2012-04-29 14:18:10 +00:00
adelikat 38dd7889b3 Input Config - hide Enabled checkbox since we have no intention of supporting the disabling of a controller at this time. 2012-04-29 14:06:24 +00:00
adelikat 5e91cc2a7e TAStudio - clear holds menu item & context menu item, clears all buttons pressed on the virtual pads 2012-04-29 13:25:35 +00:00
adelikat 8df4ac18bd Play Movie Dialog - show warnings on mismatches for system, movie version, and emu version 2012-04-29 13:11:33 +00:00
adelikat d9134ac6ce TI-83 add a bunch of rom versions to gamedb, mark bad dumps accordingly, and display the version number when displaying the rom name 2012-04-29 03:58:06 +00:00
adelikat 3d10431a2b Atari - implement console switches (as menu items) 2012-04-29 02:48:33 +00:00
rolanmen1 3bcaa8f2e6 gui.clearGraphics implemented. This will allow the user to clear the graphics whenever he wants. I also created a function ClearDisplaySurface that is used to clear the graphics whenever the user stops a scripts. 2012-04-27 20:15:07 +00:00
rolanmen1 56b8d6d55e gui.drawImage implemented. It needs a Path, X and Y Points, Width (optional) and Height (optional). If Width or Height are null, their value will change to the original Width/Height. As with gui.drawIcon, the Path needs double backslash (\\).
Take in mind that if the image have transparent background, the background will be drawn in transparent.
2012-04-26 03:41:31 +00:00
rolanmen1 fd9005f361 gui.drawIcon implemented. It draws an Icon file (Path to File) in the specified X and Y Coordinates. It has 2 optional parameters, Width and Height. You can't resize the icon to be bigger than it's original size, only smaller. Oh, and Path must have double backslash (\\). 2012-04-25 20:34:50 +00:00
rolanmen1 93335d287a Fixed gui.alert anchoring. Since do.gui.text now have more parameters, it didn't worked. 2012-04-25 19:58:17 +00:00
brandman211 cb3e0ec666 Applied the renames for "minimum buttons pressed", "minimum buttons inputted". 2012-04-25 04:56:48 +00:00
Rolanmen1 f637f5f400 gui.text now has a line color parameter. 2012-04-24 15:23:56 +00:00
rolanmen1 cefc803425 gui.text now accepts BackgroundColor parameter. I didn't had enough time to check stuff, so i will check more deeply some other time. 2012-04-24 03:57:23 +00:00
adelikat d62b2d98e1 Hotkeys - add Open TAStudio hotkey 2012-04-24 00:11:58 +00:00
adelikat 1fc010ad56 Record Movie Dialog - make filename text box default to the game name, and change save file dialog to populate from this text box not game name 2012-04-22 14:04:10 +00:00
adelikat 2aeedf074e Fix Load/Save Named State to default to the correct savestate path rather than the most recently used path. Fix so that these functions can not be accessed during Null emulator via hotkey 2012-04-22 13:56:34 +00:00
adelikat 75b5ec9223 redo revision 2168, this method also fixes the issue of loading a non-movie state while a movie is loaded, but also doesn't break the parsing of the savestate frame value in CheckTimeLines 2012-04-22 13:38:12 +00:00
adelikat 27239847c0 Fix so that the Save Config menu item does not close tool dialogs 2012-04-21 22:46:48 +00:00
adelikat 8711c49819 Cheats - on screen message when Disable All Cheats is performed. 2012-04-21 22:42:32 +00:00
adelikat c112573c30 Atari - fix recording/playback & input display of 2 players 2012-04-21 18:27:37 +00:00
zeromus 1e3b38538d fix a surface GC churn bug in display manager 2012-04-21 17:21:09 +00:00
adelikat aecd849eb5 Show svn revision number in about boxes 2012-04-21 15:25:47 +00:00
adelikat e43b53aba8 NES Graphics Config Dialog - limit last line to 239 instead of 240 (prevents crash) 2012-04-21 15:13:42 +00:00
Rolanmen1 152f6f37e8 Added a HitBox Script for SMB2U, it runs but still a bit buggy. 2012-04-18 15:06:07 +00:00
Rolanmen1 cf9606eb49 Created 2 functions, GetPen and GetBrush. They will recieve an object variable to return a Pen/Brush of said color, this was made to clean the code of the draw functions. 2012-04-18 14:11:16 +00:00
rolanmen1 4db055ce36 gui.drawPie implemted. BizHawk now can make graphics. Quick Example: http://i44.tinypic.com/ibigs2.jpg 2012-04-17 21:41:21 +00:00
rolanmen1 ee8ff2c1cf gui.drawBezier, gui.drawPixel, gui.drawPolygon are all implemented. 2012-04-17 19:58:27 +00:00
rolanmen1 733a1e7bc6 gui.drawLine implemented 2012-04-17 17:48:37 +00:00
Rolanmen1 10a73f777d gui.drawRectangle now accepts both hex and string. Hex format is ARGB (Alpha, Red, Green and Blue respectively). 2012-04-17 16:12:14 +00:00
adelikat 68a8dd5f74 Lua - implement gui.drawEllipse() 2012-04-17 03:21:16 +00:00
zeromus d156dbe5fc dont crash when minimized 2012-04-16 22:12:11 +00:00
andres.delikat 1f5e4d1046 Replace the "Play" and "Record" messages for movies with Icons. 2012-04-16 21:04:00 +00:00
rolanmen1 0fd023dc8c gui.drawRectangle now accepts Line Color and Background Color. Line Color is mandatory, background is not. If user decides to not specify background color, it won't fill. 2012-04-16 20:47:01 +00:00
andres.delikat 839a247bba Fix input display during lag frames for NES games 2012-04-16 20:19:08 +00:00
rolanmen1 a4032aff51 gui.drawRectangle now accepts 4 parameters (X, Y, Width and Height). Should implement Line Color and Background Color as parameters. 2012-04-16 20:04:43 +00:00
andres.delikat 48f65ac847 Movie subtitles - implement ability to display multiple subtitles at once 2012-04-16 20:00:11 +00:00
adelikat 3bae8da0b6 Adjustment to height settings of osd messages, code clean up in movie.cs 2012-04-16 12:17:25 +00:00
zeromus 35fbe354c1 add threaded display manager to allow heavy OSD/compositing/filtering to happen on another thread. add a lua layer accessible via GDI+ which can be automatically composited and the simplest possible demo of it. add some filtering infrastructure and a hq2x filter set ported to c# but need to work on a minimal selector gui before its usable. separate OSD from RenderPanel so that gdi+ presentation mode now gets full OSD support. the OSD is now a little uglier because its drawn entirely differently and could use some finetuning 2012-04-16 08:18:41 +00:00
adelikat 0aa08984ed Add SHA1 to movie headers, Play Movie - highlight sha1 in red when there is a SHA1 mismtach between the movie and the current game. 2012-04-15 03:02:07 +00:00
beirich b3e79aa06f Fix input chain stuff so that genesis roms can be loaded without crashing client 2012-04-14 16:02:45 +00:00
zeromus 7b86f66353 nes-oops. now, actually pass all mmc3 tests 2012-04-14 09:40:41 +00:00
zeromus 73fba31c34 nes-add mapper012 (mmc3 variant, for dragon ball z 5). add concept of mmc3 chip revision variants to mmc3 code and game database, and add proper emulation thereof. pass a bunch of mmc3 tests. simplify (to almost nothing) iNES board detection to correspond to new paradigms of virtual board types. your savestates for mmc3 games are invalidated. 2012-04-14 08:28:42 +00:00
zeromus a1d798cc8f nes-mark banana bad dump variants as bad in gamedb 2012-04-11 18:17:59 +00:00
zeromus 9f6820b83f revise nes gamedb to be more organized and useful hopefully with respect to the actual kinds of scenarios we run into 2012-04-07 18:34:05 +00:00
adelikat 87fa6d5f17 Hex Editor - Context menu - fix "Add to Ram Watch" hotkey display to be Ctrl+W (was left as A) 2012-04-06 02:04:00 +00:00
adelikat da2062d373 Atari - add avgn game to gamedb 2012-04-05 23:57:57 +00:00
rolanmen1 fd6a1a88da Emulator Won't Crash When User Loads A State That Is Not Embedded To A Movie 2012-04-05 01:42:24 +00:00
zeromus 87b455b195 oops 2012-04-05 01:40:30 +00:00
zeromus 3f6127152f build lua differently so that it has at least a prayer at interoperating with plug-in dlls. at least, it can load them. there may be other problems later due to the dlls generally being compiled against a different CRT (vc8) than our lua and luainterface (vc10). we could fix this if we needed to by compiling the CUSTOMIZED lua in vc8 and referencing it from the vc10 luainterface. 2012-04-05 01:05:08 +00:00
Rolanmen1 39e640aee9 gui.cleartext() Implemented. This Function Should Always Be Called After emu.yield() In Order For The Later To Work Correctly. 2012-04-04 20:09:50 +00:00
adelikat ea2bdac456 Fix an exception from commit 2161 (Prevent lua script restart when resetting a game). Fixed by making RecentFiles.GetRecentFileByPosition() more robust by not crashing when there is no recent file (returns "") instead 2012-04-04 02:23:47 +00:00
Rolanmen1 2b9483f68f Lua Scripts Don't Disable If You Record A New Movie Nor When You Reset The Game. However, It Does When You Load A Different Rom. 2012-04-02 19:50:26 +00:00
adelikat 2581edc958 Play Movie dialog - include .bkm and .tas regardless, since our matching of current rom is not very robust, make match current game option set to false by default 2012-04-02 01:35:34 +00:00
adelikat a18b700664 Bigger hammer fix for drag & drop of movie files 2012-04-02 00:47:52 +00:00
adelikat 59f92b4c81 TAStudio - atari virtualpads 2012-04-01 18:53:06 +00:00
zeromus 4c817b20c8 add konami collection games to gamedb so they show as good dumps 2012-04-01 16:25:59 +00:00
brandman211 557f437195 -As much as I dislike the new joypad.set() setup, the least I could do is make it consistent with joypad.get().
--If there is no controller parameter, then all of the buttons are returned as they are stored in the system, just like joypad.set(input) takes button names as is.
--If there is a controller parameter, all of the buttons for that controller are returned without the "PX ", just like joypad.set(input, controller) takes button names without the "PX " and assigns them to the matching buttons for that controller.
--No one approved this change, but seriously, this is common sense. I expect some "change denied" April Fool's stuff tomorrow...
-Implemented a blacklist for ButtonCount. By default, Lag, Pause, and Reset are blacklisted. I don't think any of these buttons should be tracked.
2012-04-01 08:08:40 +00:00
adelikat f38073db5c another movie file extension fix 2012-03-31 15:36:10 +00:00
adelikat 7e9085b46d Fix drag & drop of movie files 2012-03-31 15:34:31 +00:00
adelikat f3d098a390 Atari - hook up to the default paths 2012-03-31 13:41:00 +00:00
adelikat 7b0599bfb5 Update version numbers to 1.0.4 (interim) and remove erroneous release notes file. 2012-03-31 01:28:45 +00:00
adelikat 4c958584f5 Add Lua scripts folder to MakeRelease.bat 2012-03-31 00:44:17 +00:00
adelikat ab2e804300 Change default movie extension to .bkm 2012-03-31 00:38:39 +00:00
adelikat 2eba9e0c71 Atari - console buttons hooked up to mnemonics (input display and movie recording now work) 2012-03-30 23:42:09 +00:00
adelikat cb3df74105 Atari - console buttons now work in input config dialog 2012-03-30 23:34:38 +00:00
andres.delikat e4acb65ed1 Controller Config - hook up atari console buttons mostly, still one thing to fix up, currently crashes when trying to save 2012-03-30 22:03:08 +00:00
andres.delikat 724fe704fc Atari - hook up console select and reset buttons to config file. Still TODO: add to input config dialog, modify mnemonics 2012-03-30 16:40:52 +00:00
brandman211 4240c119b6 Fixed Issue 14, which mentioned that in TAStudio, frame numbers of more than 5 digits don't display properly by default. I fixed this by increasing the width of the Frame column as much as I could without making the section horizontally scroll. This accommodates for 6 digits. 2012-03-30 14:24:40 +00:00
adelikat 00d25b2355 Fix so main form text field displayed Atari 2600 on atari games. Remove "Hawk" that I added earlier. 2012-03-30 12:26:36 +00:00
adelikat 52fd33153a Atari - fix recording and playback of atari resets 2012-03-30 03:43:25 +00:00
adelikat 8a199f0e3a Atari - fix the recording of reset 2012-03-30 03:15:36 +00:00