Commit Graph

83 Commits

Author SHA1 Message Date
adelikat 3f1ef8dd4d add a IMovieSession property to ToolFormBase and use it 2020-04-16 12:25:42 -05:00
adelikat f2e52988c1 simplify some IMovieSession stuff 2020-04-14 21:23:47 -05:00
adelikat ab7225c955 remove MovieSession convenience property that isn't that convenient anyway 2020-04-14 20:58:02 -05:00
adelikat 0d2f014621 refactor Bk2LogEntryGenerator to be stateless, refactor some IMovieSession shenangians 2020-04-14 20:50:21 -05:00
adelikat 13e58cbac5 refactor IMovieController 2020-04-14 19:05:17 -05:00
adelikat 2b17c6d310 simplify some LogGenerator code 2020-04-14 16:44:37 -05:00
adelikat 6d5c444252 Move Global controller adapters into InputManager, it's a step in the right direction 2020-03-15 17:50:48 -05:00
adelikat edd8349dde fix typo in Global property 2020-03-15 17:09:11 -05:00
adelikat 348cbd18df
Remove PathManager code that had dependencies on Globals (#1881)
* move one usage of Firwmare method into Firmware config where it is better suited

* PathManager - remove unused code

* move some PathEntry specific logic out of PathManger and into PathEntryCollection extension methods

* PathManager - detangle some exe pathing logic from Global.Config usage, clarify what a completely broken method should actuall do

* move more logic from PathManager to PathEntryCollection extension method

* move absolute path creation to PathEntryCollection, lots of refactoring and simplifying of PathEntries usage

* simplify PathEntryColleciton usage more

* simplify PathEntryCollection more

* break PathEntry classes into separate files, a bit of cleanup

* move Rom path logic out of PathManager into PathEntryCollectionExtensions

* move config UseRecentForRoms and LastRomPath into PathEntries, note that this is a breaking change for previous configs, those values will revert back to default values

* move SaveRamPath logic from PathManager to PathEntryCollections

* move cheats path logic from PathManager to PathEntryCollection

* move another method out of PathManager

* move some Retro hacks to PathEntryCollections, exposes more implicit dependencies

* move savestate logic out of PathManager to PathEntryCollection

* move more logic out of PathManager

* move some savestate logic out of PathManager, move most to MainForm where it is used, detangle some implicit dependencies from SaveSlotManager

* rename method

* move more logic from PathManager to PathCollectionEntry

* movie final Global.Config.PathEntries logic out of PathManager and into PathEnties
2020-03-15 15:12:36 -05:00
adelikat 9584ff1f53 use switch expressions in some various places in EmuHawk, and some other simplifications 2020-03-04 20:18:43 -06:00
adelikat e7399a5e10 oops, add code lost in designer shenanigans 2020-02-01 15:47:49 -06:00
adelikat 67ec75f644 Basic Bot - don't display messages while botting, recalculate Start enable on max value change, add checkbox to wire to mainform's invisible emulation for faster botting (possibly) 2020-02-01 15:43:06 -06:00
adelikat 1836ad86b6 Basic bot - if bot is unable to run and a message box is shown, show a specific error as to why it can't, instead of a generic error 2020-02-01 15:02:32 -06:00
adelikat 285c251135 Basic Bot - default to >= operator for main value 2020-02-01 15:02:32 -06:00
adelikat 07239d6678 BasicBot - cleanup and simplifications 2020-01-26 13:48:15 -06:00
YoshiRulz 7062ba5b6a
Clarify "Autoload" text (from #971) 2020-01-13 01:54:15 +10:00
adelikat 0b57b4c5f6 cleanups 2019-12-22 13:58:00 -06:00
adelikat c20ae5b16c cleanup BasicBot 2019-12-22 11:39:40 -06:00
adelikat 1aa318d7e1 use ToolFormBase properties instead of globals 2019-12-22 10:57:06 -06:00
adelikat b80b367831 refactor IMovie to expose the movie mode, and make extension methods that do IsPlaying type logic. This way there can be direct checks, and more variety of methods without cluttering the interface 2019-12-21 16:34:29 -06:00
YoshiRulz 8f93a954e1
Move Lua hacks to Lua libs
Changed parameter of IInputMovie.SetRerecordCount to ulong to match internal
2019-12-16 15:04:35 +10:00
YoshiRulz 7f07949816
Migrate serialised images to separate files, removing duplicates 2019-12-07 05:24:24 +10:00
J.D. Purcell d3b62009e6 BasicBot: Fix DPI scaling issues. 2019-10-13 14:49:25 -04:00
James Groom 90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
squashed PR #1591
2019-10-13 15:50:57 +00:00
alyosha-tas b429cdd9ac Basic bot, spaces back to tabs 2019-07-28 09:27:41 -04:00
ShinobiWannabe 3edd6600be Fix merge issue
duplicate function
2019-07-15 23:00:41 -04:00
ShinobiWannabe 8c2eb9cd57 Merge branch 'master' into basicbot_tasstudio_issue 2019-07-15 22:54:50 -04:00
ShinobiWannabe bb0e0522f2 Icon change, and changed _lastAdvancedFrame to private
Had to put code back in to sync it.  Changed a variable to private and changed Copy icon on copy cutton to "duplicate".
Note: To fix the error with the pull request for being ahead x commits and behind x commits, must merge from upstream/master which got the missing commits.
2019-07-15 22:38:54 -04:00
ShinobiWannabe ac125fc19d Added Help MenuItem
Goes out to tasvideos page for the basic bot
2019-07-14 05:47:56 -04:00
ShinobiWannabe f7f3f65a19 Copy Best Input to Clipboard
Added a Copy button in the Best Attempt group.  There is a tooltip on the copy button that explains it literally copies the input and can be put into a text file or into TasStudio.
2019-07-14 03:51:26 -04:00
ShinobiWannabe 68a58c1dd5 CurrentBotAttmpt.Log will not go over amount of frames.
Restricting the Update function from adding additional _currentBotAttempt inputs.  Checks if Emulator.Frame advanced from last Update.  Works fine if you are not flipping through multiple branches in TasStudio. Doing that results in some other Ram Watches being off sometimes.
2019-07-12 21:08:12 -04:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
YoshiRulz c0a28a320b
Inconsequential changes (no whitespace)
Remove useless semicolon, remove useless `? true : false`, move period to next
line
2019-01-07 22:02:02 +10:00
zeromus 615d7848f9 basic bot - fix failure to fully use selected memory domain (fixes #1305) 2018-11-30 10:14:35 -06:00
nattthebear ebe789eed2 heh 2017-05-10 07:45:23 -04:00
J.D. Purcell b53502eed8 Spaces -> tabs. 2017-04-15 16:37:30 -04:00
adelikat 5ff33e7569 Rename IController.Type to IController.Definition to more clearly describe the property 2016-12-12 12:30:32 -06:00
adelikat 546947041b BasicBot - Remove unnecessary usage of Global.Emulator 2016-12-04 12:23:44 -06: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
zeromus a7d2b8d7f7 * add a new IToolForm update mechanism which has extensible update points (so a tool can both pre- and post- update)
* make trace logging "core-pushes" model, to a sink installed by the frontend. This sink can go straight to the disk without wasting memory if that's what the Trace Logger tool has selected; or the Trace Logger will buffer it if it needs to.  Formerly, we had a "core-pushes-to-buffer" and "client-pulls-once-per-frame" which necessarily caused huge buffers no matter what was going on.
2016-08-13 15:31:26 -05:00
nattthebear 111648cf98 Break a bunch of memory domain stuff with pointless refactoring 2016-04-13 19:50:06 -04: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
adelikat 5ddd9e097b clean up some warnings 2016-01-30 21:28:49 -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
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 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