Commit Graph

2972 Commits

Author SHA1 Message Date
adelikat 907850ce02 Lua - fix exception when reloading a lua script with registered functions while the registered functions dialog is open 2016-02-06 14:22:56 -05:00
adelikat 487fce328b Lua - add option to detect changes in scripts and automatically reload them. Have this option off by default for now. Also fix reloading of scripts which was recently broken. 2016-02-06 13:50:02 -05:00
Adam Sturge f19333dd11 Prettied up display of comparison type in cheats table 2016-02-05 20:33:21 -08:00
Adam Sturge 092b5da974 restored [ConfigPerist]. 2016-02-05 19:33:31 -08:00
adelikat d0d5df44c9 Tastudio - create settings sooner, hopefully fixes null reference errors with the splitter controls 2016-02-05 21:57:40 -05:00
adelikat 7885934a1e Add a global tools path in path config, have various tool related paths fallback to this tools folder, wire it up to hex editor .tbl files and basic bot .bot files. Change various tool paths to be . by default to point to the tools folder instead. Add tools folder to version control and builds 2016-02-05 20:46:18 -05:00
feos ec3c862f4a tastudio: account for loading files with "All Files" filter.
todo: input import.
2016-02-05 23:35:57 +03:00
feos 40b8a82034 tastudio:
- don't clear selection on Cut
- don't mindlessly unpause the emulator if autorestore is off and we're editing input via menu
2016-02-05 23:35:56 +03:00
Adam Sturge c9dd10e8c0 Added comparison type column. Tied to debug issue where the column disappears from settings before being added to UI, couldn't figure it out without removing the [ConfigPersist] attribute from the Settings variable 2016-02-03 21:37:08 -08:00
hegyak 73e705f0f3 Added Multiline Cheat Code handling for all supported cores. Added GBA Slide code handling. 2016-02-03 14:01:57 -08:00
zeromus e0d74c7718 better error handling in shader compiling. kind of sloppy, but gets the job done. entire system could use a little rethinking, if i ever revisit filters 2016-02-03 02:28:03 -06:00
Adam Sturge 9959d61949 Added comparison type dropdown. Updated Cheat model to contain reference to comparison type 2016-02-02 20:32:46 -08:00
adelikat 8168031bed Make TargetZoomFactor a per systemId setting 2016-01-31 21:05:08 -05:00
zeromus 5e89e563d0 overhaul lua sandboxing so that each lua script has its own sandbox. elaborate tracking of winform/event ownership to ensure that lua doesnt receive calls without going through the owner's sandbox. add win32-specific speed hacks for currdir set/get at higher speed. There may be bugs in this commit, but I think we're on the right track now. 2016-01-31 19:54:55 -06:00
adelikat 30c7b32bc1 Lua Console - when a lua exception occurs we also want to update the script status icons 2016-01-31 19:02:02 -05:00
zeromus 1e928c6b17 add sha1: label to hashes in firmwares config info sub-window 2016-01-31 16:39:54 -06:00
adelikat 0ff2db5c8d Lua - ResumeScripts - loop through only running scripts, to avoid sandbox calls for non-running scripts 2016-01-31 14:31:29 -05:00
adelikat 51e12040d1 Ram Watch - fix logic that determines whether to show Freeze or Unfreeze in the context menu 2016-01-31 11:55:00 -05:00
adelikat 9cb0072f0f Ram Search - also fix leadings zeros in the Difference box 2016-01-31 09:15:17 -05:00
zeromus 42c0b62261 fix some lua currdir bugs, but its all broken, dont pay any attention to it 2016-01-31 03:18:34 -06:00
zeromus 74eba9209c visualstudio keeps trying to change this project 2016-01-31 02:41:36 -06:00
zeromus da865e28b8 try sandboxing currenty directory harder 2016-01-31 02:40:48 -06:00
adelikat 0013646db5 Rip out obsolete notion of a WatchList domain, change ram watch menu item to Default Domain, who's functionality is simply to decide the default domain used when adding a new watch, also add some Visual Studio designer shenanigans for a previous commit I made that broke it 2016-01-30 22:17:31 -05:00
adelikat 5ddd9e097b clean up some warnings 2016-01-30 21:28:49 -05:00
adelikat aaf4d39b58 Ram Watch/Search - misc code cleanup 2016-01-30 21:21:17 -05:00
adelikat 6f75ef6dba Move another function to ToolFormBase 2016-01-30 21:07:03 -05:00
adelikat 894a9c2318 Rework ToolHelpers from a static object to ToolFormBase that inherits form and have a lot of tools inherit it, in hopes of moving a lot of copy pasta into a base class, move a few functions that show up a lot there 2016-01-30 20:24:53 -05:00
zeromus 0da6e745e5 move EnvironmentSandbox and LuaSandbox to Client.Common 2016-01-30 18:37:30 -06:00
adelikat 1e57a0a221 Lua Console - remember column widths 2016-01-30 19:20:52 -05:00
adelikat fdae465089 Lua - refresh the lua console when a script exits 2016-01-30 18:50:05 -05:00
adelikat 7bb3e04105 Ram Search - fix having lots of leading zeros in the different by box 2016-01-30 18:28:29 -05:00
feos 7409a32658 lua: attempt to use sandbox in callbacks. 2016-01-30 23:26:27 +03:00
adelikat b6406fe523 lua - client.displaymessages() 2016-01-30 12:08:37 -05:00
Suuper 6f95431637 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2016-01-29 12:30:04 -06:00
Suuper 81b2a5d597 Fixed #533. (Use TryParse, don't try to use a value that can't be parsed.)
Made numpad minus key work when typing a float value.
Made current typed float value display (so that "-" can show up).
2016-01-29 12:22:28 -06:00
zeromus e855cb39cd psx - add "determine lag from GPU frames" option 2016-01-28 13:53:22 -06:00
feos bff12a4fdc movie save as - hide when needed. 2016-01-28 16:11:05 +03:00
feos 6a1c2ba924 movie: save as menu item (mainform and context menu) 2016-01-28 13:30:21 +03:00
AdamSturge fa6ed30ba5 Merge pull request #559 from TASVideos/feature/reduce-basic-bot-ui-size
reduced basic bot window size
2016-01-27 18:50:35 -08:00
zeromus 9c698011f6 when automatic movie backups are enabled, take a backup when the movie is closed without saving 2016-01-27 20:33:31 -06:00
Isaac Miell 259b8eaeb9 Fix #561 2016-01-28 03:45:22 +10:30
feos 099df32224 ability to save/load specific config files 2016-01-27 19:07:26 +03:00
feos d39aa6433e tastudio: implement SeekingCutoffInterval 2016-01-27 16:18:20 +03:00
feos 1c6a40dec9 tastudio: seek progress bar:
- stop dividing by zero!
- ignore if seeking closer than 2 frames ahead (todo: make cutoff configurable)
2016-01-27 15:44:42 +03:00
feos 1b8ef3738a tastudio:
- history form: canonical colors, show the current item better, report marker operations
- markers: adding markers updates dialog, don't ever remove marker 0
- tsm: attempt to fix exception in AllLag()
2016-01-27 12:53:26 +03:00
Hathor86 f145f3cc68 Polar Coord
- Add polar coordinates to VirtualPadAnalogStick
- Update N64 pad Schema as VirtualPadAnalogStick is a bit larger
- Add Clamp method to NumberExtensions (allows a IComparable<T> value to be restriced between 2 specified other values)
2016-01-23 22:56:41 +01:00
zeromus d7186c9e6f remove c#6isms 2016-01-21 21:22:26 -06:00
Adam Sturge 40a38703c1 reduced basic bot window size 2016-01-20 21:44:17 -08:00
adelikat 8ea6c2cc66 Merge pull request #556 from AdamSturge/master
Create movie directory and basic bot compare to UI
2016-01-20 21:09:22 -05:00
adelikat 36250ee782 Basic Bot - have the clear button clear out the attempts and frames values 2016-01-20 17:56:08 -05:00
Adam Sturge 19ae023d8e Changed case of event listeners for comparison UI elements 2016-01-17 17:46:48 -08:00
Adam Sturge 16aae180e5 Save/Load bot data now accounts for comparison values 2016-01-17 17:44:39 -08:00
Adam Sturge c172590ce4 Reset comparison values when new is pressed. Adjusted camel casing on UI elements 2016-01-17 17:20:12 -08:00
Adam Sturge f67b8e5bdf Added update code for _comparisonBotAttempt 2016-01-17 17:01:17 -08:00
Adam Sturge a7f24179cb Added UI components for specifying comparision values. Added logic to control enabling them. 2016-01-16 16:22:39 -08:00
Adam Sturge 2f11a3adca Updated brace alignment 2016-01-15 19:16:35 -08:00
Adam Sturge 7949e2e182 Added Directory.Exists check for Movie director when clicking the browse button 2016-01-15 19:14:59 -08:00
pjgat09 e4a4a9606c Lua forms: Added a scrollbars argument for creating a textbox. 2016-01-15 21:19:25 -05:00
zeromus d786292ccf remove unused code Apply MOTW code 2016-01-14 01:51:40 -06:00
zeromus 192458a190 try catching some missing prereqs in emuhawk startup and print a report about it 2016-01-14 01:50:41 -06:00
zeromus 364a1498c1 fix compile errors in hyper HD edition commit 2015-12-31 11:38:35 -06:00
hegyak 1b3c05d6ea Super Ultra Mega HD BizHawk GameShark/Action Replay/Code Breaker Final Hyper Edition Arcade Remix EX + α GBA Code detection method. 2015-12-31 06:13:07 -08:00
Hathor86 2876f63dd8 ExternalTools: Allow several tools running simultaneously 2015-12-30 11:00:56 +01:00
feos dc3a133d0b tastudio: fix upward drawing. 2015-12-26 13:17:22 +03:00
adelikat ac1c7d0992 HexView - setting up some API 2015-12-24 15:46:57 -05:00
adelikat 60692450e8 New Hex Editor - add the plumbing for the HexView widget, that will use the GDIRenderer as the basis for the drawing. 2015-12-24 11:15:29 -05:00
Connor Olding 9a45066e27 Fix selections in HexEditor text columns 2015-12-23 21:29:48 -08:00
adelikat d470703a40 Add an Experimental Tools submenu that only shows in Developer Builds and move autohawk there. Add a NewHexEditor tool (in the experimental section), which is currently just a bare bones winform with all the necessary plumbing set up 2015-12-23 21:11:25 -05:00
Connor Olding f0c939d87c reimplement strings for OSD watches
also fixed saving separators
2015-12-23 17:18:39 -08:00
hegyak 55eef165aa Add one to the VersionInfo.cs 2015-12-20 12:44:50 -08:00
feos a77a224f9b hexeditor: make secondary highlight color depend on primary
fixes custom color mismatch
2015-12-20 23:07:13 +03:00
feos 65415608e5 hexeditor tweaks:
- don't show chars between scrollbar and right label border
- don't add existing items to _secondaryHighlightedAddresses
- view scrolls after offscreen mouse selection
- spacing becomes more comprehensible
- display number of selected addresses if more than 1
2015-12-20 23:07:11 +03:00
hegyak 69a5b6fb52 SNES Cheats: Properly Support GameGenie codes. Fix a bug with Byte Vs. Word cheats.
GBA Cheats: Add Check for DEADFACE to return without conversion and issue warning about this.  Add Skeleton for Action Replay MAX code conversion.  Needs detection.
2015-12-20 09:52:08 -08:00
adelikat 752235b848 NES Music ripper tool - clean it up slightly to be more presentable 2015-12-20 12:51:05 -05:00
adelikat 223295cd87 Make platform specific game genie tools not released, so they don't show up in the toolbox 2015-12-20 12:49:14 -05:00
adelikat 01e72a2d94 Change macro input to released = false 2015-12-20 12:46:17 -05:00
adelikat 7654374682 Cheats - use the integrated tool instead of the one-off platform specific tools 2015-12-20 12:38:59 -05:00
adelikat 13418e963b GameShark - reposition and resize things slightly, there was a bit too much unused space for no reason 2015-12-20 11:49:50 -05:00
adelikat fdc530626d Rework the ordering of the tool menu items, and make GameShark default window style "CenterParent" 2015-12-20 11:45:39 -05:00
feos 23b3784123 lua: gui.defaultTextBackground() 2015-12-20 14:28:31 +03:00
feos c5526a1169 Fix #134 - Option to turn off "savestate every frame" for bsnes
Warning text: "Guarantee deterministic emulation by savestating every frame. Don't TAS without it! Only ~75% of runs sync without it, but speed boost is ~30%."
2015-12-20 11:58:11 +03:00
pjgat09 84428afc58 Lua forms textbox: Ctrl+A now selects all text 2015-12-19 22:16:29 -05:00
zeromus 260ad45a88 fix lua's reboot_core function... maybe 2015-12-19 21:14:13 -06:00
zeromus 22143f99fb work on stability of avi writing. Unfortunately, I did a half dozen things here, overlapping in complicated ways, and at least 2 of which were required to fix it: changed pinvoke wrapper of AVISaveOptions, removed ownership of pointers from codec token (simplified analysis and in principle [but not practice] determinism due to less GC involvement), changed life cycle management of codec token (irrelevant due to prior), changed functions used to allocate memory from AllocHGlobal to pinvoke HeapAlloc, made different assumptions of ownership/lifecycle of pointers accessed by AVISaveOptions. notably the pinvoke wrapper for AVISaveOptions was the last thing I fixed that sealed the deal, but I don't think it was that simple. 2015-12-19 05:13:31 -06:00
pjgat09 d54e53d329 Lua forms.setproperty: Convert the passed value to an enum if applicable 2015-12-19 00:01:06 -05:00
hegyak f8a3dca089 Correct a dumb bug in Genesis GameGenie code conversion. 2015-12-18 15:50:14 -08:00
feos 2a19edca91 avi: try to remember previously used codec.
todo: fix canceling codec selection but then going ahead and recording.
2015-12-17 00:24:46 +03:00
feos d77c414a06 avi: traditional avi setup menu item. 2015-12-16 21:14:13 +03:00
pgrimsrud bb327261ae Add a return value to the main function for various purposes.
Add Lua function ExitCode to allow script writers to terminate the client with an exit code.
2015-12-15 22:39:42 -07:00
Hathor86 a7074c6341 ExternalToolManager and BizHawkExternalToolattribute
Add those 2 classes in order to help handling of external tools
- Also fix value setting in watches constructor
- Bugfix in loading externaltools (they loaded multiple times)
- Add new version of Hello World external tool
Whitespaces noise in RamWatch.cs... :s The code hasn't changed
2015-12-13 21:38:35 +01:00
feos 2535207a40 tastudio: actually implement seeking progressbar. 2015-12-13 00:00:23 +03:00
zeromus 48bf9616db fix --fullscreen and fullscreenOnLoad options 2015-12-12 13:25:59 -06:00
zeromus a9b094c11b fix path config window size (too small for global, looks bad) 2015-12-10 07:01:37 -06:00
hegyak f40b2acd47 Comment a MessageBox out. 2015-12-10 04:52:45 -08:00
hegyak 2f2bfc0656 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-10 04:43:05 -08:00
zeromus 0218d6d321 fix toolbox 2015-12-10 06:08:00 -06:00
zeromus 053b260929 fix console log noise from recent revision to throttle 2015-12-10 05:47:11 -06:00
Connor Olding a7dd0b2386 Adjust Registered Functions window: anchors, minimum size 2015-12-10 03:35:12 -08:00
hegyak 29c30c2b49 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-09 21:51:26 -08:00
Connor Olding 938b0a63de Fix path to ffmpeg.exe 2015-12-09 20:32:21 -08:00
hegyak 84e3e02c1e Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-09 17:01:18 -08:00
feos 2a6a2a7a8a tastudio: properly report saving progress.
also attempt to report seeking progress.
report occurs, but progressbar doesn't show up...
2015-12-10 01:38:06 +03:00
feos ea1368c819 tastudio: display changes in a loaded file too. 2015-12-09 19:58:09 +03:00
hegyak 9c210e5fa4 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-08 16:05:37 -08:00
Hathor86 708bb4fa93 Final stuff to WatchList
Now fully use comparer class. That saves memory and offer extensibility
ItemCount property obsolete => Moved to Count property (which did the same thing)
Moved ConfigPersistAttribute.cs, IToolForm.cs, IToolFormAutoConfig.cs back to common
2015-12-09 00:54:54 +01:00
feos 8a6ddfbf3f tastudio: actually use initial state from anchored movies.
don't seek to whatever frame such a movie was created from.
2015-12-08 23:38:00 +03:00
hegyak 0d3a166529 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-08 08:35:51 -08:00
feos 173b9e9d76 new lua script, relying on recent features.
show frame when rewinding.
2015-12-07 21:43:32 +03:00
hegyak bcac7f5f18 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-07 09:27:37 -08:00
feos 72b650d606 tastudio: properly save/load column settings.
wrap MainForm savestate functions that tastudio can now control into IControlMainform.
2015-12-07 20:05:04 +03:00
hegyak 1a15403690 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-05 19:56:13 -08:00
Hathor86 12388cbe3d ExternalTool bug fix: wasn't able tool load serveral dll 2015-12-06 00:52:07 +01:00
zeromus 35066b69ef tastudio - fix behaviour of menu by special hacks involving ALT key 2015-12-05 11:32:56 -06:00
feos 84ea239180 tastudio: better check if it was engaged.
baka-yoke branch messages.
2015-12-05 18:33:35 +03:00
feos abd118253f tastudio: Save State hotkeys (finally) control branches:
- save/load by slot number (select that branch if it exists)
- save/load current slot (selected branch)
- select branch by slot number
- select next/previous branch
- bind 2 default tastudio hotkeys
keep selection when branch gets removed.
2015-12-05 17:07:24 +03:00
hegyak 0e0877aa4d Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-05 04:29:46 -08:00
feos d0772a6b44 reduce default binding repetition.
add tastudio hotkeys and tip.
2015-12-05 14:48:04 +03:00
feos 6d4c5ef17f preparations for state hotkeys functioning with tastudio branches.
typos.
2015-12-05 14:48:04 +03:00
feos 7fe4f4e1de context menu too. 2015-12-05 14:48:03 +03:00
feos 8411161930 tastudio shortcuts.
select all is never used, select between markers is frequent, simplify the latter.
clone and delete are used in pair, give them similar shortcuts.
insert and clear are rare, but are simple enough to drop modifiers.
insert # of frames is even rarer, make it the hardest shortcut.
2015-12-05 14:48:02 +03:00
adelikat 48487f2a90 Sort out and fix problems with Ram Search watch files showing up in the Ram Watch recent list 2015-12-04 23:18:46 -05:00
hegyak a4993b50c3 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-04 20:13:55 -08:00
adelikat c1b8e6c1d1 Cheats - fix bug where it was using the recent ram watch list instead of the recent cheats list 2015-12-04 23:03:13 -05:00
hegyak 941b6dd109 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-04 17:45:34 -08:00
zeromus ee52570dbf fix #541 Heavy CPU usage when emulation is paused 2015-12-04 19:22:48 -06:00
hegyak 8d724f0d14 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-03 17:44:14 -08:00
feos 4bc74ce36e tastudio: arrow keys start making sense.
up/down - scroll tasview.
ctrl-up/down - move selection.
shift-up/down - append selection.
removed ctrl-shift-R, duplicate of ctrl-shift-F.
2015-12-03 23:06:28 +03:00
feos 69970c5ae5 tastudio: select the new cell on every rightclick.
only enabled for branches and markers, since in tasview we use rightclick to start advance/rewind.
involved some hackery, like killing context menu while OnMouseDown of the given listview, then going back to InputRoll's OnMouseDown and actually selecting a new cell. can we figure out a hovered cell while context menu is still active? also, it'd make sense to do this for leftclick as well, but without context menu hiding, there doesn't seem to be a way to force updating of listviews from InputRoll.
2015-12-03 21:16:55 +03:00
hegyak b2c9fddfb9 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-02 14:07:02 -08:00
Hathor86 31cc08a954 More WatchList comments
Finished coments on WatchList object
2015-12-02 22:48:30 +01:00
feos 0f6ef723bf tastudio: fix bug with ScreenshotPopupControl's alpha channel.
it was forgetting to discard alpha, and when creating a bitmap it dropped anything but lua hud, since it does have alpha bits that nothing else has, and with no lua hud involved, it showed all normally, since it didn't have to drop colors with zero alpha. lol.
2015-12-02 22:21:05 +03:00
hegyak addb22ea39 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-01 16:48:23 -08:00
Hathor86 32271899c3 Comments on Watch derived class; started on watchlist
+ Moved WatchList.cs to specific directory (just a matter of ordering)
+ Mark some properties and methods in watchlist as obsolete
+ Create Comparer class that are used for sorting (Only domain and
address atm, other a still stored with linq). Unlike OrderBy in LINQ, it
doesn't create a new list for sorting (so it saves memory), furthermore,
it runs faster.
Finally, change to type of Watch.Address from nullable lon to regular
long (the rare times watch.Address.Value was used, there wasn't any
check of null and so, program would have crashed -
InvalidOperationException -)
2015-12-01 22:18:55 +01:00
feos ef563a77e0 tastudio: differentiate between marker with text and regular marker.
both have buttons and context menu items.
if mass adding regular markers, give a warning for 50+.
marker with text can only be added one at a time.

fix #504
2015-12-01 19:36:13 +03:00
hegyak 9cfef3f063 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-11-30 16:00:46 -08:00
feos d8ec9e6878 tastudio: editable HoverInterval for BranchView (stored to TAStudioSettings).
when comparing, we want them to show up instantly.
2015-11-30 23:45:06 +03:00
hegyak 020c71557b Add some code for Slide Code Handling for Action Replay MAX.
TODO: Detect Action Replay MAX codes Vs. GameShark/Action Replay codes.
2015-11-29 14:22:23 -08:00
feos eb41e8a8e0 lua: remove registered functions on toggle option. 2015-11-29 22:56:28 +03:00
feos 0be8f8c564 lua: another pixelFont tweak. 2015-11-29 22:56:26 +03:00
Hathor86 e7de250fb2 Comments on ByteWatch
Also moved nullable value type to non nullable (with exception
prevention).
2015-11-29 17:13:32 +01:00
feos fbd1d6d8e2 Lua: autoload recent scripts too (unless there's a recent session to autoload).
pixelText bg tweak.
2015-11-29 13:29:48 +03:00
Hathor86 1e2f4e12be Watch refactoring
Some improvement when you get Available types. Used to return a new
array each time you call the function. It has been transformed into an
IEnumrable and yield return.
DisplayType, PreviousType and Watchsize have been moved outside the
Watch Class
2015-11-28 22:52:00 +01:00
feos 128c09e7b4 progress with lua:
- added fceux and gens/snes9x pixelated fonts
- added gui.pixelFont() function for them (no resizing, so perfectly scalable)
- added background to drawText and pixelText (halo was painfully slow, so just a box)
- reordered fore and back colors for gui.text (no need to specify back every time we want to change fore). thought its back color was shadow, that is obsoleted by halo now, whose color we can't change. anyway, it's way slower than simple text functions, so they should be used mostly.
- option to toggle all scripts if none is selected. greatly reduces routine when heavily tweaking a script, and is just generally pretty.
2015-11-28 22:19:15 +03:00
Hathor86 d4b4c06f0c Draft of API
So, I create a new dll named BizHawk.Client.ApiHawk and moved few stuff
to it.
Also moved some stuff to BizHawk.Client.Common. Don't think it can be
desiociated.

I started comment Watch and rearrange code (put some #region etc...

It compiles and it seems working :)
2015-11-26 23:05:29 +01:00
feos 1928d04137 default font now has halo.
if someone really prefers the shadow way (why would anyone?), it can be made optional. well, halo color can't be edited. regarding lua, this only affects gui.text, since it uses the same bitmap font.
2015-11-26 22:51:48 +03:00
feos 2ce108e310 lua: ability to SetBranchText.
doesn't make much sense to add text to existing branches from lua, but highly useful to set some text to a new branch.
and we also have a default branch text variable now.
2015-11-26 00:12:25 +03:00
feos 796a62f883 tastudio: moved branch and marker popups to their controls.
marker add called from MarkerControl doesn't check TasView selection anymore: current frame has higher priority, and if we don't want a marker on it, we use TasView's doubleclic or menu to mark selection.
sight MarkerControl cleanup.
2015-11-25 23:28:46 +03:00
feos 344cd94aa2 tastudio: MarkerControl buttons (and commands).
also moved marker context menu from TAStudio to MarkerControl.
2015-11-25 00:10:34 +03:00
feos 33144e18c7 tastudio: add buttons to branch view. 2015-11-24 20:43:43 +03:00
feos 1f1382ceb7 tastudio: attach usertext to branches, make it editable from menu.
moved branch functions and menu items around.
2015-11-23 23:27:27 +03:00
hegyak 9b0a94dd8e Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-11-22 16:04:05 -08:00
hegyak 280b7a84c7 Clear the Text Box inputs for GBA. 2015-11-22 16:03:22 -08:00
Hathor86 f3771e7b98 Ambigous call fixed
This bug occured sometime, when we try to call Load() by reflection
without parameters.
2015-11-22 23:45:57 +01:00
hegyak 3f12ae3485 Correct a small bug in GBA Game Shark code adding. Description is NOT code. 2015-11-22 13:51:10 -08:00
Hathor86 dee47067ad Merge pull request #540 from Hathor86/CustomTool-Improvement
Custom tool improvement
2015-11-22 20:49:10 +01:00
hegyak 2055e375aa Add Game Shark and Action Replay Code GBA code handling. Action Replay MAX, Codebreaker, GameShark SP, and Xploder codes are not detected or handled, yet. Action Replay MAX does have a decryption key set. 2015-11-22 11:37:42 -08:00
feos 5715dc2a84 tastudio: add user text area to screenshot control.
padding height is autocalculated based on string and bitmap width.
todo: add branch user text and use it for the above.
2015-11-22 22:31:08 +03:00
Hathor86 6f18e44fe7 Code Formating
Just more sexy
2015-11-22 17:56:08 +01:00
feos 2723739a02 tastudio: screenshot control tweaks.
- don't cut it on the left if tasview is narrow, push it right instead
- don't hide it instantly if it spawns right under the mouse cursor, hide it if mouse leaves *it*, not branch control
- keep consistent Y position
2015-11-22 19:54:21 +03:00
Hathor86 7d2e02b94b Debugging and POC
Change some logic into ToolManager for better practice
Adjust the look of toolstrip items
Update comments
2015-11-22 17:37:00 +01:00
feos 099e37ad76 tastudio: load session and rebuild columns on every file load.
it was only loaded on tastudio launch, so whenever it's not autoloading a recent project, loading one with different syncSettings would cause ! columns.
2015-11-22 17:17:01 +03:00
feos 33ac38fe5d tastudio: do right-click frame move only on Alt
right-scrolling should not fire frame drag AND greenzone invalidation (every time we accidentally move the mouse over the frame column)
2015-11-22 12:44:24 +03:00
hegyak 7ec0e74c3f Add Support for Game Genie to GameBoy, Game Gear, Nintendo Entertainment System and Sega Master System. 2015-11-21 05:55:09 -08:00
Hathor86 d92eed5845 Menuing
Change the menu item name
Change interface name
turn menu item into a submenu dynamically filled
2015-11-21 01:03:48 +01:00
hegyak 570e0aeb34 Add SNES Game Genie Handling. Added start of NES Game Genie handling. Minor code cleanup in GameShark.cs
Also updated .gitignore to have Output/Gameboy on the list
2015-11-20 07:25:09 -08:00
Hathor86 bae4d53cbf merge remote master 2015-11-20 13:14:38 +01:00
hegyak c4016affee Add SMS Action Replay handling. 2015-11-19 11:07:52 -08:00
hegyak a3b7770333 GameShark for N64 Corrected. Genesis Game Genie and Action Replay Added. Made Code detection smarter for several systems. 2015-11-19 09:34:09 -08:00
zeromus 10fcf662a1 oops, i didnt commit enough 2015-11-18 21:18:00 -06:00
zeromus bc2e8c773d fix crash in loading hex editor (openadvanced regression) 2015-11-18 21:17:34 -06:00
zeromus 28eae0dcb1 Revert "Revert "common logic for tempfiles""
This reverts commit 5196fc6b70.
2015-11-17 17:26:03 -06:00
zeromus 5196fc6b70 Revert "common logic for tempfiles"
This reverts commit 5afa44bbec.

and also "fix regression in libretro core loading and streamline open advanced libretro ui"
59048264cd but tortoisegit didn't put that in the commit message.
2015-11-17 17:10:27 -06:00
zeromus 59048264cd fix regression in libretro core loading and streamline open advanced libretro ui 2015-11-17 16:56:30 -06:00
hegyak 1e878f700c Corrected GB/GBC Code Handling. Added SNES Action Replay code handling. 2015-11-16 09:22:58 -08:00
hegyak b3166094ca Added PSX and Saturn GameShark Code Support. 2015-11-16 06:49:00 -08:00
hegyak ca2a98c029 Improve GB/GBC GameShark Parsing. Make N64 Parsing robust. Start on PSX handling. 2015-11-15 19:35:05 -08:00
zeromus 0ff2a2eb49 fix crashy bugs in snes gfx debugger 2015-11-15 18:02:20 -06:00
hegyak 59766d07c0 Further Cleaned up the GameShark N64 Code Behaviors. Byte and Word Recognized. 2015-11-15 12:25:32 -08:00
hegyak 3596407791 Changed the Byte Detection method for N46 Cheats. 2015-11-15 11:37:30 -08:00
hegyak afa4ec30b6 Clean up GB/GBC GameShark Handling. Improve N64 Code Recognition. 2015-11-15 11:09:55 -08:00
hegyak 26758d00fd Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-11-15 06:27:53 -08:00
hegyak 0c8c5f81c6 Added N64 GameShark Support. 2015-11-15 06:25:55 -08:00
Hathor86 c7dcb42b94 Merge from maser@TASVideos 2015-11-15 11:27:00 +01:00
zeromus 5afa44bbec common logic for tempfiles 2015-11-15 03:01:58 -06:00
zeromus 22192e700b attempt to make it possible to store movies on disk instead of in memory 2015-11-15 02:27:48 -06:00
hegyak 77e6239992 Correct/Cleanup the GameShark Tool.
Conflicts:
	BizHawk.Client.EmuHawk/tools/GameShark.cs
2015-11-14 15:15:47 -06:00
zeromus fae4d27bed Revert "Cleanup GameShark.Designer.cs"
This reverts commit 9864d8190c, reversing
changes made to 0630be922b.
2015-11-14 15:11:13 -06:00
hegyak 9864d8190c Cleanup GameShark.Designer.cs 2015-11-14 12:13:39 -08:00
hegyak 6c9006241d Correct/Cleanup the GameShark Tool. 2015-11-14 12:10:23 -08:00
adelikat 0630be922b Tools - add a SupportedSystems attribute to ToolAttributes, if specified by a tool, the IsAvailable and Load Calls will check that the current system id is in the list 2015-11-14 14:59:56 -05:00
hegyak 1ba166af19 Correct the GameShark Menu Item. 2015-11-14 06:57:11 -08:00
hegyak c112a2b0a2 Added GameShark Converter. 2015-11-14 04:49:45 -08:00
zeromus d24f778a40 try supporting U+D/L+R priority control in addition to allow and forbid 2015-11-14 01:49:16 -06:00
adelikat 32cecf6dde Context Menu - config submenu - autofire config menu item wasn't wired to an event, and savestate types didn't have menu labels 2015-11-13 19:49:22 -05:00
zeromus ea45f40743 fix error in sizing of lua draw buffers with SetGameExtraPadding (and probably ClientExtraPadding) use 2015-11-13 15:07:14 -06:00
zeromus 283cb4ae50 fix loading of roms from commandline 2015-11-12 17:47:39 -06:00
zeromus 53eae133e7 fix #537 Annoyance with "always on top" 2015-11-12 17:32:49 -06:00
adelikat f0e93ce80d Merge pull request #536 from Isotarge/master
Fix forms.destroyall() and call it when lua console closes
2015-11-11 10:06:50 -05:00
zeromus 7702ae5f3c work on keyboard input, but hasnt been tested yet. also reorg the core a bit 2015-11-08 22:05:48 -06:00
zeromus 53fcc09c08 various bugfixes to system/save pathing and support CAN_DUPE, to stabilize the gambatte and neopop cores 2015-11-08 19:18:08 -06:00
Hathor86 5c36c16160 Fixing merge 2015-11-08 22:57:54 +01:00
Hathor86 cc2c888870 Merge remote-tracking branch 'refs/remotes/TASVideos/master'
Conflicts:
	BizHawk.Client.EmuHawk/MainForm.Designer.cs
	BizHawk.Client.EmuHawk/MainForm.cs
	BizHawk.Client.EmuHawk/tools/CDL.Designer.cs
	BizHawk.Client.EmuHawk/tools/CDL.cs
	BizHawk.Client.EmuHawk/tools/CDL.resx
	BizHawk.Common/InstanceDll.cs
	BizHawk.Emulation.Common/CodeDataLog.cs
2015-11-08 22:41:51 +01:00
zeromus bce9b6f33d fix rom drag&drop 2015-11-08 02:35:44 -06:00
zeromus b745d5776a tidy libretro core info and use recommended extensions 2015-11-07 19:59:10 -06:00
zeromus 70b7098cb8 fix rebooting of libretro cores, add CPU detection win32 hacks, add retro perf interface 2015-11-07 13:05:40 -06:00
zeromus 7651f418fe usably functional libretro player 2015-11-07 00:14:59 -06:00
Isotarge 02c04d0088 Fix forms.destroyall() and call it when lua console closes
Fixes #454
2015-11-07 01:38:44 +10:30
adelikat 26f1c2c2ec Cheat Dialog - fix issue #535 - domain list does not update when changing cores 2015-11-04 22:23:27 -05:00
zeromus 4942ae7905 CDL - revise UI 2015-11-04 02:08:11 -06:00
zeromus fb7ed39944 change order of shutting down core vs tools so tools have a chance to unhook from the core before the core is disposed 2015-11-03 23:45:57 -06:00
zeromus be4af1ec2f when editing watches, populate the edit dialog with the actual memorydomain of the watch you're editing, instead of mainmemory 2015-11-03 03:24:25 -06:00
Hathor86 f70a2c8c6c Merge from TASVideo 2015-11-01 22:01:19 +01:00
zeromus 1ce0437c3d CDL - add .cdl file map to dialogbox display 2015-11-01 11:23:33 -06:00
zeromus 70e0954f28 CDL - major refactor complete. muuuuch better. 2015-10-28 03:51:53 -05:00
zeromus 6a042cc8ac fiddle around with CDLog menu items 2015-10-27 19:49:13 -05:00
adelikat 400e4f4800 Add an empty ICodeDataLogger emulator service, make it a required service for CDL.cs 2015-10-27 19:03:56 -04:00
zeromus 35b6d8c1d6 CDL - support GPGX. still need to make enable toggle, to win back speed 2015-10-27 16:31:43 -05:00
zeromus e8d307c33a CDL - add consistency check to GB, fix probably bugs in varying cartram sizes, change GB memdomain from "Cart RAM" to "CartRAM" (hope this doesnt cause a problem) 2015-10-26 21:42:48 -05:00
zeromus 7cf79aae8c CDL - add byte counter, fix bug resetting GB 2015-10-26 19:36:26 -05:00
zeromus fbe010a18d CDL reorg 2015-10-26 19:24:20 -05:00
zeromus 10bbf6e9d0 implement GB CDL 2015-10-26 19:16:38 -05:00
zeromus bef877365c make CDL generic, and prep for GB CDL 2015-10-26 19:15:21 -05:00
zeromus 188bf5a6c6 fix #530 "AV Resizing shows black screen with PSX" 2015-10-25 16:06:50 -05:00
feos ef07f8b0b0 tastudio: account for mouse speed when advancing/rewinding.
this way you get farther if you right-scroll fast, and still navigate precisely otherwise.
2015-10-25 20:48:51 +03:00
feos a4b3a57af2 tastudio: update RowCount before scrolling to frame.
fixes loading a branch whose movie length is longer than current.
2015-10-25 20:24:33 +03:00
feos 19add0ec93 tastudio: save/load TasSession variables in .tasproj.
right now only includes current frame and branch. current scroll is not needed as we GoToFrame anyway, current selection seems pointless.
2015-10-25 17:53:25 +03:00
zeromus 4fe51a1364 support custom AR selection in addition to custom exact-specified resolution 2015-10-25 02:15:59 -05:00
zeromus 84be5d211c fix IndexOutOfRangeException in SNES Graphics Debugger #529 2015-10-24 18:04:35 -05:00
feos 3f1a3907b5 tastudio: put branch states to a separate greenzone file.
default scroll speed to 3.
2015-10-24 12:47:34 +03:00
zeromus 1256419cc1 gitignore and cleanup 2015-10-24 03:03:39 -05:00
zeromus 76731ba0e7 Add TempFileCleaner 2015-10-24 02:48:16 -05:00
adelikat dc00fd0a4b Merge pull request #528 from BordynConfused/master
BasicBot got smarter
2015-10-22 18:57:34 -04:00
zeromus 93e7c91ee9 clean up lua console pause/stop behaviour a little bit and add listview icons to make it more clear what's going on 2015-10-22 16:28:52 -05:00
BordynConfused 30f6b659f2 BasicBot got smarter
BasicBot can now search for values that are greater than, less than, or
equal to the best run values.
2015-10-22 13:21:20 -05:00
feos 4e7d03d9a3 tastudio: clean up garbage lua text and drawings.
- text was written twice if we update tools and PauseOnFrame (seek) within one frame.
- drawings didn't update during turbo even when RunScriptsDuringTurbo was on, but a whole bunch of accumulated drawings was appearing at once, when you do a normal advance after turbo mode.
2015-10-22 19:33:31 +03:00
feos 8a86737ff0 tastudio: color stated frames on WasLag too. 2015-10-21 19:00:24 +03:00
zeromus 500f8f9d70 print aspect ratio in caption in addition to client size while resizing main window 2015-10-21 04:47:15 -05:00
zeromus 3dd0ab2008 HexTextBox - try to preserve the current value when changing the hex size. This kind of thing is super annoying, revert it immediately if there's a problem. Fixes #525 2015-10-20 01:57:47 -05:00
zeromus 7e0996b44b fix Memory watch: Strange rectangle #526 2015-10-18 22:13:41 -05:00
zeromus b0a44bed07 test-compile retro filters with the currently selected driver instead of opengl always 2015-10-18 21:15:18 -05:00
zeromus 3919f5f5d3 support #include in .cg files 2015-10-18 21:13:12 -05:00
zeromus 32a1101713 fix hex editor not repainting when editing bytes to the same value as before 2015-10-18 18:44:57 -05:00
zeromus 5906bf232b add --load-state to go along with --load-slot 2015-10-17 21:36:21 -05:00
Isaac Miell 2e993dcc44 Monospaced font for BasicBot input display
Aligns input frame readout by using a monospaced font for the display
2015-10-18 11:34:27 +10:30
zeromus bd795ed162 validate shaders when selecting them from display manager config dialog to prevent setting broken shaders. also specifically reject .cgp containing .glsl references 2015-10-17 19:28:57 -05:00
adelikat 2895c78be8 Move GLManager from Client.Common to Client.EmuHawk, it is inappropriate to be in Client.Common 2015-10-17 19:27:30 -04:00
adelikat 6ff3215a5f Move Exception box from Client.Common to Client.EmuHawk, it is inappropriate to be in Client.Common 2015-10-17 19:18:37 -04:00
adelikat 8f716363a7 Move UIHelper from Client.Common to Client.EmuHawk, it was inappropriate to be in the common library 2015-10-17 19:01:38 -04:00
Hathor86 9b46de0d3e Menuing
Allow tool to be loaded from menu instead of ROM loading
2015-10-17 20:44:36 +02:00
zeromus 595f466ded add a custom exception display box 2015-10-17 01:18:37 -05:00