Commit Graph

960 Commits

Author SHA1 Message Date
adelikat e1f6c7afb1 fix bug not sorting GameName and sha1 in movies, fixes #1966 2020-05-01 14:32:10 -05:00
adelikat 15f69cf80e put bad code back in that keeps a stopped movie hanging around in memory, until tastudio is refactored. This "fixes" a lot of crash bugs when opening movies with tastudio 2020-04-28 17:12:50 -05:00
adelikat f097b91dcf bk2 - simplify 2020-04-20 09:20:00 -05:00
adelikat ba17c1fe2b MovieSession - simplify gambatte name getting 2020-04-20 09:20:00 -05:00
adelikat 72c4e19183 MovieSession - hold on to a copy of the IEmulator instance, and use it instead of Global.Emulator 2020-04-20 09:20:00 -05:00
adelikat 91dd8c938e MovieSession.QueueNewMovie - reduce dependencies 2020-04-19 14:18:09 -05:00
adelikat 5e7d666548 Tastudio - speed up drawing a bit by caching input state while drawing a row of input 2020-04-19 13:54:30 -05:00
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 918fbe6367 fix Tastudio .tasproj loading broken in previous commits (this code is a mess), MovieSession - remove setter on Movie property 2020-04-18 15:37:43 -05:00
adelikat 4e3aa0eb15 move Bk2 -> TasMovie conversion logic from Tastudio to MovieSession, fix crashing when loading .bk2 movies from the tastudio menu 2020-04-18 14:50:25 -05:00
adelikat 7a77861896 Conisstently use MovieSession.StopMovie instead of stopping the movie directly, derefrence the movie on stopping instead of letting it hang around in memory 2020-04-18 14:50:25 -05:00
adelikat 1611ff3aef IMovieSession - rename a property, add documentation 2020-04-18 14:50:25 -05:00
adelikat fa552cab81 restrict access to IMovieSession.QueuedMovie 2020-04-18 12:05:16 -05:00
adelikat dc9fa1acf3 movie code cleanup 2020-04-18 11:54:49 -05:00
adelikat 189a47ad3c move more movie loading logic out of Mainform and into MovieSession and also some extension methods 2020-04-18 11:25:37 -05:00
adelikat 3ec6662dc9 move core preference setting shenangians from MainForm.StartNewMovie() to MovieSession 2020-04-18 10:55:41 -05:00
adelikat d50bf21da9 move some logic from mainform to moviesession, remove TasMovie check that makes no sense 2020-04-18 10:09:47 -05:00
adelikat 19095bb7e5 simplify 2020-04-18 09:55:57 -05:00
adelikat 9928a88d2c simplify movieSession core preference shenanigans 2020-04-18 09:55:57 -05:00
adelikat dfe7f8e3ab refactor core preferences to be a dictionary<string, string> to be stored in config, and consolidate subnes and subgb into just another core selection 2020-04-18 09:55:57 -05:00
adelikat b736d48911 use constants for core string names and simplify core core name getting logic 2020-04-18 09:55:57 -05:00
adelikat eb3ddab060 Cleanup IMovieSession method names to be a bit more conscise 2020-04-16 12:25:42 -05:00
adelikat 0aa8d71a3f more MovieSession refactoring 2020-04-15 20:37:50 -05:00
adelikat 0d794f2b12 refactor MultitrackRecording to keep up with PlayerCount rather than use Globals 2020-04-15 18:06:31 -05:00
adelikat 5c5d662f1b MovieSession cleanup 2020-04-15 14:41:57 -05:00
adelikat c0fde42a0c don't expose Bk2Controller, clients need to depend on an interface and rely on the Movie (well, MovieSession currently) to generate an IMovieController instance, since different implementations of IMovie need to be able to create their own controller implementations 2020-04-14 21:35:44 -05:00
adelikat f2e52988c1 simplify some IMovieSession stuff 2020-04-14 21:23:47 -05:00
adelikat 189a2d7cfc nitpick 2020-04-14 21:15:56 -05:00
adelikat 74f0cf4615 movie code cleanup 2020-04-14 21:11:53 -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 cdfeda8b71 rename IMovieController methods and classes to better describe what they are 2020-04-14 20:10:50 -05:00
adelikat 919266d2dc remove unused ctor 2020-04-14 20:02:10 -05:00
adelikat aa80c3a0d6 majorly refactor Bk2Controller more 2020-04-14 19:33:49 -05:00
adelikat 2f750e8469 conslidate Bk2MnemonicConstants and Bk2AxisMnemonicConstants, rename to just Bk2MnemonicLookup 2020-04-14 19:08:51 -05:00
adelikat f3534b99b9 rename file 2020-04-14 19:06:00 -05:00
adelikat 13e58cbac5 refactor IMovieController 2020-04-14 19:05:17 -05:00
adelikat 27605f4828 Bk2MnemonicConstants - pass in system id 2020-04-14 18:12:07 -05:00
adelikat c325286169 make mnemonic constant classes static 2020-04-14 18:08:14 -05:00
adelikat 03a7ea8438 IMovie.PopulateWithDefaultHeaderValues() - pass in dependencies instead of using Globals 2020-04-14 17:30:32 -05:00
adelikat ce4037fad8 cleanup PopulateWithDefaultHeaderValues() 2020-04-14 17:15:46 -05:00
adelikat 2b17c6d310 simplify some LogGenerator code 2020-04-14 16:44:37 -05:00
adelikat 831621b864 remove some unused code 2020-04-14 16:25:28 -05:00
adelikat 017573f4c6 IStringLog - remove unused method 2020-04-14 15:57:55 -05:00
adelikat c6b39492a0 misc cleanups in Bk2Movie and TasMovie 2020-04-14 15:52:41 -05:00
adelikat e29b02a472 simplify Bk2Movie and TasMovie constructors 2020-04-14 14:55:25 -05:00
adelikat 8c852c1b70 refactor importers to pass in a config instance, instead of using Global.Config 2020-04-13 19:51:42 -05:00
adelikat 46a7e64911 misc cleanups 2020-04-12 17:41:55 -05:00
adelikat fd31922788 cleanup BkmMnemonicConstants 2020-04-12 17:20:54 -05:00
feos 8dd31a39e5 one more mame mnemonics 2020-04-10 19:28:31 +03:00