Commit Graph

81 Commits

Author SHA1 Message Date
adelikat d4c8615e95 remove unused usings and other redundancies 2020-04-23 20:33:18 -05:00
zeromus 10bceeb0dc Nope, I think it's a good idea now.
Revert "This reverts commit c878c85daeaaf0cae3e28f24bc1a8b511293d7b6."
This reverts commit 1d1f2a18c6.
2020-04-23 21:20:59 -04:00
zeromus 1d1f2a18c6 This reverts commit c878c85dae. 2020-04-23 21:06:12 -04:00
zeromus c878c85dae for your consideration: sync settings return flags instead of a bool, so we can have more granularity in what needs resetting than just "reboot core". for instance, we would like to minimize the number of times the window layout is redone by not doing it when the screen settings havent changed. HOWEVER, while I was writing this commit message, I realized, I should probably do it just by being more cautious in kicking off the layout (unless the data coming from the core has changed, a layout shouldnt happen). So I am going to make this commit, in case it inspires anyone, and then revert it. 2020-04-23 21:05:56 -04:00
adelikat 325551ecd0 consistently check if callbacks exist before calling memory callbacks, across all cores 2020-04-21 16:42:57 -05:00
alyosha-tas a018851703 O2Hawk: fix quad behaviour 2020-04-19 13:41:17 -04:00
alyosha-tas 8e7467f77b O2Hawk: fix collision detection 2020-04-17 18:52:45 -04:00
alyosha-tas 0e7e93b205 O2Hawk: various bug fixes 2020-04-17 18:38:44 -04:00
alyosha-tas a1844f5d5c O2Hawk: correctly remove videbuffer from state 2020-04-11 10:37:12 -04:00
adelikat 81bdacea64 O2 - implement IBoardInfo 2020-04-11 09:21:35 -05:00
adelikat 9eb63cd6c9 O2 - misc cleanups 2020-04-11 09:04:13 -05:00
alyosha-tas 2304e9dc5b O2Hawk: add vidbuffer back to state, it's needed 2020-04-10 19:51:32 -04:00
alyosha-tas 7c676ed40b O2Hawk: remove uneeded buffers from state 2020-04-10 18:06:32 -04:00
alyosha-tas 1185bffe36 O2Hawk: turn sound down a bit, more in line with other cores 2020-04-08 19:40:33 -04:00
alyosha-tas 444a8b7823 O2Hawk: small timing fix 2020-04-08 19:08:22 -04:00
alyosha-tas 99da16fa2a O2Hawk: clean up 2020-04-08 18:16:45 -04:00
alyosha-tas cb2d365284 O2Hawk: better fix for blockout 2020-04-08 12:12:32 -04:00
alyosha-tas a2ac1b89aa O2Hawk: more bug fixes but still needs work 2020-04-07 16:27:04 -04:00
alyosha-tas 7ddf2e0f3b O2Hawk: obj table fixes 2020-04-06 16:59:07 -04:00
alyosha-tas 015311087b O2Hawk: Cleanups 2020-04-06 11:51:00 -04:00
alyosha-tas 8827550a17 O2Hawk: fix Blockout and other issues 2020-04-06 11:25:02 -04:00
alyosha-tas 75beb338b9 O2Hawk: fix resets again 2020-04-04 18:14:54 -04:00
alyosha-tas 6edc1310d2 O2Hawk: fix cosmic conflict 2020-04-04 18:01:19 -04:00
alyosha-tas 216e382582 O2Hawk: reset fix 2020-04-03 17:24:20 -04:00
alyosha-tas f39319fd12 O2Hawk: bug fixes and add reset button 2020-04-03 16:56:22 -04:00
YoshiRulz 0ba7a5a7df
Rename axis-related types, members, and locals
I left a few methods where they had an equivalent *Bool*() for buttons, and also
left some in TAStudio that get serialised.
2020-03-31 17:29:55 +10:00
alyosha-tas 26619d367b O2Hawk: remove some unused code 2020-03-23 21:30:06 -04:00
alyosha-tas c5043d2ec3 O2Hawk: fix PAl timing a bit 2020-03-23 21:21:42 -04:00
adelikat f50b4e4c54 Odyssey2 - fix joypad.get(), apparently lua tables do not like keys that are just "." 2020-03-23 09:27:11 -05:00
alyosha-tas 04a33600da O2Hawk: fix the keyboard 2020-03-21 08:43:56 -04:00
alyosha-tas aa165f36d2 O2Hawk: add PAL mode 2020-03-20 16:39:14 -04:00
adelikat 5886416cbf refactor CoreComm usage in more cores 2020-03-15 09:22:58 -05:00
adelikat f9c6234262 oops 2020-02-22 12:37:12 -06:00
adelikat 9008bf269a O2 - remove peek/poke methods 2020-02-22 11:44:13 -06:00
adelikat 512fed32db seimplify oddessey default mapper a bit 2020-02-20 15:57:38 -06:00
adelikat 8e261a7ddb move get/set cpu registers logic from O2Hawk to Intel8048 2020-02-18 15:40:57 -06:00
YoshiRulz 3afcf416e8
Follow attribute class best practices, cleanup docs on attributes 2020-02-19 03:54:50 +10:00
adelikat 606c3bf1c2
use more advanced language features in Emulation.Cores (#1852)
* Use expression bodies in Emulation.Cores, and a few other misc cleanups

* remove unused usings in Emulation.Common

* cleanups in Tables_Direct.cs

* some cleanups in nes boards - redundant code

* remove some redundant array initializers in Emulation.Cores

* cleanup AmstradCPC.Controllers

* use object initializers in a lot of places

* nes mappers - remove disch's notes comments in favor of the nesdev wiki link

* cleanup CdtConverter.cs, mostly use of object initializers

* remove redundant .ToString() calls in Emulation.Cores

* using var in Emulation.Cores

* AmstradCPC/ZXSpectrum - simplify some linq, tabs instead of spaces, a few other misc cleanups

* Use null-propagation in Emulation.Cores
2020-02-17 16:54:51 -06:00
alyosha-tas dd2b3509e5 O2Hawk: fix some colors 2020-02-16 21:55:21 -05:00
alyosha-tas b3fac6ba12 O2Hawk: fix color output 2020-02-16 21:04:28 -05:00
alyosha-tas 25d19cdb81 O2Hawk: sprite fix 2020-02-16 16:42:31 -05:00
adelikat ef4c2119ba Odyssey2 - duplicate audio channel 2020-02-16 13:52:47 -06:00
adelikat d1266aa82d fix coleco and oddessy2 text states 2020-02-16 13:41:10 -06:00
adelikat 027dc01c8b
create StateSerializer as a base implementation of IStatable (#1850)
* create StateSerializer, an ITextStatable implementation using the Serializer class, and wire it up to the TI83 core

* wire StateSerializer to A2600 core

* wire up StateSerializer to AmstradCPC, C64, and ZXS

* wire up StateSerializer to MSX, A27800, and Coleco

* wire up state serializer to ChannelF, Vectrex, Intellivision

* fix GambatteLink to implement ITextStatable, implement TextSerializer in O2

* StateSerializer - wire up a loadstate callback and implement StateSerializer for NesHawk, a bit of rework to subNesHawk as a result

* fix subneshawk text savestates

* StateSerializer - implement byte[] buffer storing (optionally), wire up to PCE

* implement StateSerializer to SMS, tweak GGLink accordingly

* implement StateSerializer in GBHawk, fix link cores accordingly

* StateSerializer - use Serializer static methods to create serializers
2020-02-16 12:05:57 -06:00
alyosha-tas b8614dc3d4 O2Hawk: Misc bug fixes 2020-02-16 10:51:07 -05:00
alyosha-tas eb03f28e99 O2Hawk: fix noise bit 2020-02-15 21:38:57 -05:00
alyosha-tas 54542ffd6d O2Hawk: fix collision detection 2020-02-15 18:06:54 -05:00
adelikat 4b7a7dd293
Make Binary states default and Textstates opt-in for cores (#1848)
* Rewind & State config - remove the default option

* remove the savestate type of default, not that this is a breaking config change for anyone that had specifically set savestates to text

* remove BinaryStatesPreferred from IStatable and use config setting when starting movies from "Now" in record movie dialog

* remove BinaryStatesPreferred from cores

* make text savestates an extension method off of IStatable and an inteface ITextStatable it uses if the core implements it. This will allow cores to opt in to text states if desired

* make cores with actual text savestate impleemntations get ITextStatable, remove text state logic from cores that just have a binary as as text implementation
2020-02-15 10:22:26 -06:00
YoshiRulz b1e02fbdce
Enable SA1106 and fix noncompliance
"Code should not contain empty statements"
i.e. don't put a semicolon there
2020-01-25 18:06:34 +10:00
YoshiRulz 6f3f01125c
Enable SA1504 and fix noncompliance
"All accessors should be single-line or multi-line"
i.e. no block form on one line
2020-01-25 14:56:56 +10:00