Commit Graph

73 Commits

Author SHA1 Message Date
adelikat 70633419ac
Refactor TasMovie and add interface (#1940)
* create ITasMovie interface, still lots of todos

* interface for TasMovie.ChangeLog

* rename method

* interface more TasMovie things

* file rename

* interface more ITasMovie things

* make Bk2Movie and TasMovie internal, rely on interfaces for behavior and MovieService for instantiation

* MovieService cleanup

* cleanup TasBranch handling and simplify ITasMovie api

* more branch logic cleanup and ITasMovie simplificaiton

* more cleanup of branch handling

* more ITasMovie simplification

* nitpick cleanup

* Use IMovie.GetInputLogEntry instead of GetLogEntries

* more ITasMovie cleanup

* move come ITasMovie properties to TasBranchCollection

* TasMovie cleanup

* simplify ITasMovie more

* cleanup
2020-04-19 13:38:45 -05:00
adelikat e62c2e3646 PlayMovie dialog - simplify a bit 2020-04-07 15:28:27 -05:00
YoshiRulz e1951b9fc5
Cleanup PathExtensions
Fixes f02295455/c731e1168/5c7135d67
2020-03-21 13:45:58 +10:00
adelikat 33a14327b7 move most logic from PathManager to extension methods in BizHawk.Common 2020-03-15 15:45: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 079a0a4104 HeaderKeys - CONSTANTSDONTNEEDTOBEALLCAPS 2020-03-01 16:36:47 -06:00
YoshiRulz 9829fd699b Unify helpers for generating file extension lists (for open/save) 2020-02-20 21:59:20 +00:00
adelikat 626efe8caf put control extension methods into the EmuHawk names space isntead of a custom one. We want these to be found and used, and most dialogs use them 2020-02-03 12:54:32 -06:00
adelikat c2bec296e6 simplify some repeated boilerplate on the DragEnter event by consolidating it to an extension method 2020-02-03 12:42:28 -06:00
adelikat ef13754f79 consistent variable naming in config.cs 2020-01-25 10:57:39 -06:00
adelikat afd460f1d2 pass in globals to Play/Record movie dialogs 2019-12-22 14:18:17 -06:00
adelikat 5fe25d03ad Play/Reocrd movie dialogs - pass in mainform 2019-12-17 11:24:34 -06:00
adelikat 1239149af5 cleanup movie forms 2019-11-02 11:05:01 -05:00
J.D. Purcell 39b54f7202 Fix missing UI usings. 2019-11-02 00:38:50 -04:00
adelikat 2a6225940b PlayMovie - use listview in virtual mode instead of VirtualListView 2019-10-19 14:18:43 -05:00
James Groom 90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
squashed PR #1591
2019-10-13 15:50:57 +00:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
YoshiRulz 13152d670f
Rewrite MovieView_ColumnClick, also fixes typo 2019-02-24 15:49:10 +10:00
YoshiRulz a572b220f6
Fix typo copying to clipboard during loop 2019-02-24 15:48:09 +10:00
feos 57fd6051e9 fix #1246 the easy way 2018-09-21 23:43:51 +03:00
nattthebear ebe789eed2 heh 2017-05-10 07:45:23 -04:00
adelikat 28da1e215f misc code formatting improvements in random files in EmuHawk 2017-04-17 15:23:31 -05:00
zeromus a283b2d1b9 fix threading bug in movie scanner 2015-08-05 16:37:17 -05:00
adelikat 95e7c534f6 Play movie - turbo option for the stop on frame feature 2014-07-27 17:56:00 +00:00
adelikat 0397ea1ff4 Remove the CustomControls/Util file and move all the classes into the Form Extensions file, since they were all extension methods for window form objects 2014-07-27 15:22:30 +00:00
adelikat 3fbbfde343 Play Movie dialog - add a Last frame option to the stop feature, to stop on the last frame of the movie 2014-07-26 13:30:24 +00:00
adelikat f8fcc23184 Play Movie - stop on Frame option implemented 2014-07-26 13:06:19 +00:00
adelikat 6fce0bcad6 remove Time from IMovie and instead implement the logic in PlatformFrameRates 2014-06-29 00:57:33 +00:00
adelikat 055e88fea3 Remove Fps from IMovie 2014-06-29 00:48:36 +00:00
adelikat b7c692e52a oops 2014-06-14 20:18:19 +00:00
adelikat 1fcc105293 more 2.0 work 2014-06-14 20:17:07 +00:00
adelikat c08e6bbf93 Some more bk2 and movies 2.0 stuff 2014-06-14 19:13:21 +00:00
adelikat 3ea79c720b More movies 2.0 stuff 2014-06-12 21:45:47 +00:00
adelikat 3dce396261 More movie 2.0 stuff 2014-06-12 11:53:25 +00:00
adelikat 373231379c Movies 2.0 work - play movie dialog is now complete IMovie based and no specific implementation 2014-06-11 21:20:23 +00:00
adelikat 54c9c2c0a0 Some more Movies 2.0 work 2014-06-11 21:14:13 +00:00
adelikat e0a9fcd650 More movie 2.0 stuff 2014-06-11 02:56:57 +00:00
adelikat 6bd2df3bbf and that 2014-06-11 02:44:08 +00:00
adelikat 3d3a0cdeb3 oops, that needed to be ripped out too 2014-06-11 02:42:34 +00:00
adelikat e6f949274d Play Movie dialog - rip out the option to load state files since that feature probably has long since been broken and can't be expected to stay unbroken if it works 2014-06-11 02:40:24 +00:00
adelikat 5d31fb2b3c Some more movie 2.0 progress 2014-06-11 02:33:57 +00:00
adelikat a682c667dd Nuke IMovieHeader, put necessary methods into IMovie instead, and some todos on trouble spots for movie 2.0 2014-06-11 01:41:41 +00:00
adelikat 7a6e28e2b2 Fix the play movie dialog, this is a weird threading caused bug and my fix isn't good, but it fixes it 2014-06-10 01:10:54 +00:00
adelikat 6b2889957a Some refactoring of movie code to make the Header less implementation specific, and start Movie2.cs which will be a Movie 2.0 implementation 2014-06-08 22:12:15 +00:00
adelikat 7e9b13f5c3 Some movie refactoring - moving a function into the importer class, remove MovieExtension from the config file and instead add it as a movie property, add some todo comments in places regarding movie 2.0 2014-06-08 19:36:33 +00:00
zeromus e4bf12ddf9 faster movie preloading 2014-05-16 00:12:08 +00:00
zeromus 1e4e675830 multicore scanning of movie files in movie play dialog. also take the BinarySavestateBase64Blob crap out of the properties listview, its useless information 2014-05-15 23:12:48 +00:00
adelikat 3553b06350 Play Movie - Match current game hash not current game name 2014-04-26 17:54:56 +00:00
adelikat 0456639816 Play Movie - add an Edit context menu item 2014-04-22 00:59:21 +00:00
adelikat a6944c47d8 Play Movie - don't crash on headers with duplicate keys, don't throw an exception when movie files to parse 2014-04-13 23:18:45 +00:00