Commit Graph

3114 Commits

Author SHA1 Message Date
adelikat 5665de1797 Intellivision - add a "Fake analog" controller as the default controller for easier binding for casual play, but also leave a boolean option as well for more precise (TAS) control. Add a controller config dialog to select them. 2016-12-03 17:44:25 -06:00
alyosha-tas 3be6c8917c TAStudio fix default window size
Prevents marker and branch bozes from having zero size.
2016-12-03 09:36:35 -05:00
adelikat 323b2c4c8d Advanced Loader - set StartPosition to CenterParent 2016-11-26 15:41:18 -06:00
feos 3b117752cf tastudio: refine autorestore again 2016-11-27 00:28:52 +03:00
feos beb204bb4c tastudio: when new seeking starts, kill the old one 2016-11-26 20:02:54 +03:00
feos 593433106b tastudio: attempt to fix autorestore during analog editing 2016-11-26 19:49:26 +03:00
feos 2f0ccb99f1 tastudio: don't jump to greenzone end when entering analog edit mode 2016-11-26 16:35:14 +03:00
Isotarge 0bf5482af4 Fix typo
Thanks to Keeta for pointing this out
2016-11-23 00:04:49 +10:30
feos f59ebfe126 tastudio: refactor restore logic again, fixes some more bugs
(_autoRestoreFrame completely replaced by LastPositionFrame)
2016-11-21 23:59:12 +03:00
feos 0e9e4cc034 tastudio: fix < button when seeking is paused 2016-11-21 21:19:53 +03:00
feos ef8068daa4 Revert "tastudio: move LastPositionFrame to TasMovie, prepare for another revision"
This reverts commit eea49f1895.
2016-11-21 20:03:56 +03:00
feos eea49f1895 tastudio: move LastPositionFrame to TasMovie, prepare for another revision 2016-11-21 19:29:11 +03:00
feos 05d47a7318 tastudio: make analog hotkeys working, and their names fit in 2016-11-21 18:00:21 +03:00
feos 95dc2fd6b3 tastudio: move arrow keys logic to hotkeys
disallow sending Minus to MainForm
2016-11-20 23:26:13 +03:00
feos acbdfbcec9 tastudio: make analog editing mode expandable along with selection
- apply the changes made using keys to all the analog edited cells
- clamp displayed value if needed the same the resulting value is clamped
2016-11-20 17:16:29 +03:00
adelikat b7a6542fb6 Lua - gui.drawImage(), gui.drawImageRegion() - log an error if image can not be found, instead of throwing an exception 2016-11-19 14:10:17 -06:00
feos a8dde12c1f tastudio:
- set Float type to analog control columns
- set their size taking into account their MaxDigits
- stop displaying neutral analog values

input OSD:
- obtain real neutral analog value the given core uses and hide it, instead of hiding hardcoded zero
2016-11-19 19:31:04 +03:00
feos 3ea3012aa7 tastudio:
- properly setup autoloaded and normally loaded project columns
- actually call the callback that updates scrollbars and other stuff
2016-11-19 00:50:40 +03:00
feos 433d4ad693 tastudio: revive ColumnsChangedCallback, and alarm if it dies again 2016-11-17 21:30:42 +03:00
feos 2a9bd175d8 tastudio: kill zombie denoteStatesWithBGColor and co. in InputRoll, having them in Settings is enough 2016-11-17 20:25:06 +03:00
feos edf21b8bfe fix tastudio crashes when:
- setting 0 space for disk states
- righclicking on selection if a bunch of selected frames contains the last frame
- cutting the last frame
2016-11-17 20:05:41 +03:00
adelikat 30f573729c Use Count not Count() 2016-11-14 15:21:26 -06:00
feos 0b1245d769 tastudio: when loading another project, update column menus
todo: fix autoload
2016-11-14 22:39:58 +03:00
feos 52506433a2 tastudio: don't try to apply ClientSettings (columns) before SyncSettings (amount of players) 2016-11-14 20:13:08 +03:00
adelikat 889feeeeba fix #414 by idiot-proofing the lua console command window, if emu.frameadvance() is called, log a warning instead of blowing up 2016-11-13 11:26:09 -06:00
adelikat ddf23e4c3a Lua console - use string.IsNullOrWhiteSpace when checking the command line box 2016-11-13 11:15:30 -06:00
adelikat be93e78dd5 Intellivision - add .int files to the open file dialog in developer builds 2016-11-13 08:25:19 -06:00
feos 578b688d51 tastudio analog editing: Escape key cancels all changes
also prevent marker set from entering analog mode and releasing the LMB over the frame column (might happen after drag editing)
2016-11-13 16:42:24 +03:00
feos dbc35224e6 tastudio analog editing:
- autorestore after every drag edited change
- increase the mouse move step to 4 from 3
2016-11-13 16:19:46 +03:00
zeromus 595a207c97 add new field to gamedb to specify which core should be used.
allow it to be 'neshawk' or 'quicknes'.

this should only be employed by end-users; we won't make those choices in the gamedb officially.

the quicknes blacklist is still implemented separately.

yeah, that's a lot of prioritization levels.
2016-11-12 19:23:54 -06:00
zeromus c7b639be28 apply ArcadePit idea: Let user change the string in the emulator title bar via a file
(but changed the format of the string to be more generally useful, and changed it to dll/custombuild.txt)
2016-11-12 18:49:03 -06:00
zeromus 0b4fc8b6a5 apply Arcade Pit work: "Extract NesCarts.xml for easier modification" 2016-11-12 18:32:18 -06:00
adelikat e73a66b07e When ram watch is open with a file open, and loading another rom, only keep the ram watch file open if all the domains are compatible, else close it, addresses #285. There is arguably not a black and white expectation in this scenario but I think this is marginally more expected than exceptions and erroneous watch values 2016-11-12 11:46:32 -06:00
adelikat 3d402ee40e Change "Gameboy" to "Game Boy" on a few config dialogs and also change their default location to CenterParent, #411 2016-11-12 11:11:38 -06:00
adelikat 0213755d16 Cheats - when editing a cheat's domain, if the address is out of range, don't update, rather than create a separator, fixes #539 2016-11-12 09:00:36 -06:00
feos 175862a5f3 tastudio analog editing:
- mouse dragging during float edit mode updates the displayed value and fires restore on mouse up
- Enter key exits float edit mode after applying the dragged value, while Escape exits it after ignoring the dragged value (should Escape cancel all changes?)
- currently disabled switch to enter float edit mode by single click
2016-11-12 17:53:15 +03:00
adelikat f760b355e0 In Mainform Core menu - add picker for bsnes profile, fixes #179 2016-11-12 08:42:15 -06:00
feos e2d5a1d390 tastudio analog editing: typing past max digits overwrites existing value
this required a new method in FloatRange class
2016-11-12 15:30:44 +03:00
adelikat c27355169f lua forms - run a checkbox click callback after the event not before, fixes #545 2016-11-11 10:03:13 -06:00
feos 60950f1148 tastudio paste: clipboard input would give an extra empty line after splicing for whatever reason. Iterate thorough one less line. 2016-11-10 00:29:14 +03:00
adelikat 36dcf53cc0 on specialized number boxes, select all text when reseting an empty box to a default value. This fixes #685 2016-11-09 10:19:49 -06:00
adelikat 60f84fa028 Merge pull request #706 from Meerkov/master
Fix Volume Controls
2016-11-08 10:42:27 -06:00
adelikat ec502acd1d Lua - make a call to DrawFinish() when closing the lua console. Fixes endless locked emu surface errors when opening it back up and loading a script that draws 2016-11-08 10:37:59 -06:00
adelikat 8033a8c4fc Fix a null emulator check, fixes dump status icon not updating after a failed rom load 2016-11-07 14:26:02 -06:00
adelikat bb1a3e3221 PrereqsAlert - give a little more vertical space to the general advice box so the user can see the final message (that we will keep nagging them) 2016-11-07 12:20:54 -06:00
adelikat bb8bac3fb3 NesHawk - UI for setting VS dipswitches 2016-11-05 17:32:58 -05:00
adelikat 82fa40dfc8 Quick fix to #722 (I think) 2016-10-31 13:31:48 -05:00
adelikat 8406cec681 Add menu items for VS controls 2016-10-29 21:35:46 -05:00
feos 00d07b8602 tastudio: attempt to fix crash caused by seek progressbar 2016-10-29 16:58:09 +03:00
hegyak f1ddafa6de Add a check for clearing the Gameshark Tool's text boxes. And actually clear both. 2016-10-10 11:13:01 -07:00
feos 9714aa5cc9 tastudio:
- preserve branch text per update (unless default text has changed)
- remove redundant code from paste functions, rely on global clipboard fully with cut/copy too
2016-10-10 19:00:59 +03:00
feos 93f78a69d2 tastudio: show cursor hotkey 2016-10-09 17:14:39 +03:00
feos 0a554a984f tastudio: fix infinite pasting loop 2016-10-09 16:21:01 +03:00
feos f52d8a526b tastudio: global clipboard has preference over internal 2016-10-09 15:51:47 +03:00
adelikat e281950902 Close a lua instance before creating a new one, fixes #455 2016-10-06 15:17:05 -05:00
adelikat ef6c9131c6 Fix behavior when loading a new rom when a cheat is loaded, fixes #550 2016-10-06 13:57:39 -05:00
adelikat db194c8360 Basic Bot - Fix logic for determining the best attempt, no longer thinks every new attempt is better, I think this fixes #603 2016-10-06 12:03:32 -05:00
adelikat 4c140f676e Basic Bot - change dropdown style to DropdownList to avoid empty and invalid choices. Fixes #602 2016-10-06 11:34:34 -05:00
adelikat 2d9fde1bed Basic Bot - update Run button status when loading a bot file 2016-10-06 10:59:57 -05:00
adelikat 15c1fafa48 Hex Editor - when switching to a domain where highlighted addresses are out of range, clear the highlighted addresses, fixes #710 2016-10-06 09:35:50 -05:00
adelikat ab0b78f143 Hex Editor - fix exception when pasting beyond the range of the domain, fixes #708 2016-10-05 19:59:46 -05:00
adelikat 3daad8d916 Hex Editor - fix a minor bug with displaying the selected address, fixes #709 2016-10-05 19:31:30 -05:00
feos 5ed5613826 tastudio: paste from OS clipboard if _tasClipboard is empty 2016-10-01 20:12:50 +03:00
feos fc66ec1b02 Lua docs: fix #703 2016-09-29 18:09:58 +03:00
Meerkov 6a9510c9ae Re-enable Thread Sleep when not in Absolute Zero mode 2016-09-29 01:19:25 -07:00
Meerkov 129fdf2a68 Revert "Allow Fast Forward Volume to be Louder than Normal Volume"
This reverts commit 4bd6608940.
2016-09-29 01:10:23 -07:00
Meerkov 9eafac83d4 Improve Absolute Zero Mode by 15-30%
Short-circuits out of the Render function in the main program loop.

With an NES game running at 8500 FPS before, this brings it to 9700 FPS.

With no game loaded, running at 45k FPS, this brings it to 60k FPS.
2016-09-29 00:57:32 -07:00
Meerkov 151c88feb8 Removes busy-wait
This sleep doesn't appear to be needed. It's just busy waiting.

We save CPU cycles by not doing this.
2016-09-29 00:18:55 -07:00
Meerkov 1b8d32e82f Refactor the FPS Counter to it's own function
1) Takes the block of code that calculates the string to print and gives
it it's own function.

2) Stores a static display variable. Fixes incorrect FPS while fast
forwarding as a result.

3) Reduces updates per second to 12 from 16.
2016-09-29 00:04:39 -07:00
Meerkov 68a362c8ff Fix subtle bug in renderSound
Bug as follows:

renderSound was true when any of the following:
_currAviWriter!=null&&_currAviWriter.UsesAudio
!IsTurboing || _currAviWriter!=null

So, if _currAviWriter!=null, it didn't matter if it has the UsesAudio
flag on or not.
2016-09-28 23:14:18 -07:00
Meerkov 4bd6608940 Allow Fast Forward Volume to be Louder than Normal Volume
Allows FF Volume to override the normal volume, instead of multiplying
it (which could only decrease the volume).
2016-09-28 22:40:14 -07:00
Meerkov 4aa64b1f34 Refactor atten variable checks
Cleans up volume checks, makes it a bit easier to follow by removing
negations.
2016-09-28 22:37:26 -07:00
Meerkov d3547b15d4 Fix bug with Mute Frame Advance
It will actually mute when you hold the Frame Advance button.

Previously, the setting did nothing.
2016-09-28 22:02:38 -07:00
Meerkov 49d7f79ce5 Reduce redundant attenuation code in main loop
This simplifies the code for setting the attenuation by setting it to 0,
and moving all the checks that change it next to each other.
2016-09-28 21:48:35 -07:00
Meerkov cd46188efe Remove Unused Variable
UpdateFrame can never be true, so all of this code is pointless.
2016-09-28 21:24:09 -07:00
Meerkov 4e99ed17ae Replace spaces with tabs 2016-09-28 21:16:24 -07:00
Meerkov 91c5eda526 Update FPS Counter
Changes the FPS counter to fade.

Why: FPS counter has a bug where it doesn't normalize the frame count to
the time passed since last update. This can result in an error of 1 FPS.
When running at 30 FPS, that is ~3.33%. The lower the FPS, the worse
this error grows.

1) Adds a parameter for how often to update the FPS (e.g. 16 times per
second).

2) Normalizes to the number of seconds passed since last update (fixing
the bug).

3) Adds a smoothing parameter (e.g. weigh the most recent interval at
8x, and normalize with current displayed date). This results in less
jumpy FPS because it takes into account historical data.
2016-09-28 21:04:53 -07:00
hegyak b3d91049de Change PrereqsAlert.Designer.cs to point to GitHub instead of SF 2016-09-27 18:06:54 -07:00
adelikat 7a31121f20 NESHawk - Provide a UI for initial ram pattern override 2016-09-27 09:52:21 -04:00
Isotarge 3e88b91b65 Take Affect -> Take Effect
Thanks to puwexil for pointing this out
2016-09-27 16:07:34 +09:30
pjgat09 32be471382 GLideN64: Changed UseNativeResolutionFactor to an int setting 2016-09-26 11:13:07 -04:00
Kyle Howell 3d88f77ec6 Fixed TAStudio crash when deselecting "Show Player X". The horizontal scrollbar was not updated which caused an exception when scrolling to the right. 2016-09-25 16:55:34 -06:00
Kyle Howell 4834e31bb8 Fixed bug with InputRoll selected rows drawing hidden columns. 2016-09-25 14:04:57 -06:00
Kyle Howell d66181a597 Fixed bug with right click inputRoll selction. 2016-09-25 12:47:37 -06:00
pjgat09 e6a84f151c Merge branch 'GLideN64' 2016-09-22 14:35:46 -04:00
pjgat09 59e43a25f9 GLideN64: Added settings to the plugin dialog. Removed some settings from the sync settings that we will not need. 2016-09-22 12:57:09 -04:00
adelikat 707c0944f0 clear the OSD before doing loadstate callbacks, fixes #635 2016-09-22 10:13:26 -04:00
pjgat09 a85da435f9 GLideN64: Added a sync settings, hooked up the dll, and added it to the video plugin list in the plugin dialog. Updated the submodule reference. 2016-09-22 08:46:49 -04:00
adelikat 10a2ae1471 Detect when a joypad is added or removed while bizhawk is open fixes #698 2016-09-21 21:23:57 -04:00
adelikat 3f191be372 Ram Search - Better event to tie toolbar enabling logic to for indices changing - fixes #629 2016-09-21 14:31:42 -04:00
adelikat 3bf11dbf68 Fix slow Ctrl+A on Ram Search and Ram Watch, fixes #630 2016-09-21 10:56:57 -04:00
adelikat d954512214 Virtual Pads - Analog Sticks - check min and max range before setting the value. Fixes #686 2016-09-21 10:13:30 -04:00
feos ef445c90c7 tastudio: fix a couple of crashes 2016-09-09 19:15:00 +03:00
feos e5f2f53bde tastudio: make sure we refresh when seeking is done 2016-09-09 18:48:23 +03:00
feos 634f11a202 tastudio: fix cursor dragging during seeking (by disabling it)
taseditor fashion
2016-09-09 18:46:05 +03:00
feos a0d718acc0 tastudio: don't pause on green arrow is seeking past it 2016-09-08 23:29:17 +03:00
feos 7d1084bf98 tastudio: change internals of editing input during scrolling.
for now it only makes a single edit per click, since we only recalculate OnMouseDown if scrolling. this is required to get rid of scrolling recursion caused by various actions.

also ClearLeftMouseStates before saving dialog pops up
2016-09-08 22:22:33 +03:00
feos ba895e3bad tastudio:
- fix recursion in cell updates caused by clicking cursor column (fixes scrolling)
- display invalidated color consistently

n64: fix trace callback prototype
2016-09-04 12:03:12 +03:00
feos d1ac02ebb3 tracer: more fixes to bugs found by actual usage 2016-08-31 21:24:09 +03:00
feos 5761b6b7ce tastudio: GlobalWin.MainForm alias
almost 100 cases of usage is worth it

make "recent rom not found" window topmost
2016-08-29 14:33:12 -04:00