adelikat
c66243254c
remove unused GameInfo parameter in some core constructors
2020-03-15 10:19:01 -05:00
adelikat
5886416cbf
refactor CoreComm usage in more cores
2020-03-15 09:22:58 -05:00
YoshiRulz
3afcf416e8
Follow attribute class best practices, cleanup docs on attributes
2020-02-19 03:54:50 +10: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
adelikat
c6e0e9fa57
Rename CoreAttributes to CoreAttribute as to not be a bad person
2017-07-12 14:10:55 -05:00
adelikat
1dae91e6a8
clean up core constructors - consistent parameter casing, and put them at the top of the class
2017-05-05 19:05:36 -05:00
adelikat
698c6741ae
Refactor IEmulator and remove the IController property, instead pass it as a paramter to the FrameAdvance() method
2017-05-01 20:09:11 -05:00
adelikat
ded1c2d7b7
Break off BoardName from IEmulator into a separate IBoardInfo service
2017-04-30 21:01:54 -05:00
adelikat
7f663a0ed6
misc. cleanup for Coleco and Intellivision
2017-04-24 12:24:56 -05:00
adelikat
8ad021c6fd
Intellivision - implement memory callbacks
2017-04-23 13:28:40 -05:00
adelikat
71f33e53f5
Intellivision - nitpick - let the controller deck assign Power and Reset
2017-04-23 12:41:11 -05:00
adelikat
4b695e2820
Intellivision - implement IDisassemblable
2017-04-23 12:30:41 -05:00
adelikat
d03577ade6
Intellivision - partially implement IDebuggable - flag/register getting and setting, and TotalExecutedCycles
2017-04-23 12:30:41 -05:00
adelikat
30aa86cd7e
Intellivision - more cleanup
2017-04-23 11:10:26 -05:00
adelikat
0f36bce22a
Intellivision - actually support lag variable setting, and some misc cleanup
2017-04-23 10:53:26 -05:00
alyosha-tas
ae27d0ae94
Intellivision add Power/Reset
...
Also fix Aspect ratio
2017-03-05 18:45:32 -05:00
adelikat
61e8b51802
Intellivision - mark the core as released, add alyosha as an author, and add the framerate entry to PlatformFrameRates
2017-02-18 15:01:09 -06:00
alyosha-tas
fc96fe2cba
Intellivision track lag
2016-12-27 16:31:33 -05:00
alyosha-tas
138f7b140d
Add in inputpollable stuff to Intellivision
...
Should be TASable now
2016-12-19 20:20:10 -05:00
alyosha-tas
c6d8666f23
Intellivion copy paste enough stuff to get the sound working
...
Sound now fully implemented including in savestates
2016-12-13 12:26:56 -05:00
adelikat
b73a500d6b
Major sound provider refactor. Create a unified interface ISoundProvider, that is an IEmulator service and break it off of IEmulator. IAsyncSoundProvider was kept as a shim for now, for legacy cores that were inherintly async.
2016-12-11 11:15:00 -06:00
alyosha-tas
fc8ac3b190
Intellivision fix controller ports
...
They are apparently reversed. This fixes numerous games.
2016-12-10 18:56:35 -05:00
alyosha-tas
91f36bf638
Intellivision Partial audio
...
Still has some bugs and is missing envelope but its getting there
2016-12-09 23:00:40 -05:00
adelikat
538630f957
Intellivision - document a non-applicable emualtor service
2016-12-08 13:06:20 -06:00
alyosha-tas
89940b85af
Intellivision wire up sound system
2016-12-07 20:49:47 -05:00
adelikat
2cf14db2ec
Intellivision - add IStatable to Intellvision.cs, because it is nice to have all the interface implementations in one place
2016-12-07 12:35:46 -06:00
adelikat
5665de1797
Intellivision - add a "Fake analog" controller as the default controller for easier binding for casual play, but also leave a boolean option as well for more precise (TAS) control. Add a controller config dialog to select them.
2016-12-03 17:44:25 -06:00
alyosha-tas
68028d9c1d
Stop logging all the time
2016-11-12 16:09:51 -05:00
adelikat
ae8caf4546
Intellivision - set up memory domains service, with a few domains that were easy to do
2016-11-12 14:08:05 -06:00
adelikat
e44493d9fb
Intellivision - wire up trace logger to the core. Currently does nothing since the TraceCallback in CP1610 needs to be wired up in the object in the right places
2016-11-11 16:17:35 -06:00
alyosha-tas
65e43ca1c4
Initial Intellivison commits
...
Test game: Armor Battle
2016-11-11 16:47:55 -05:00
adelikat
212f94814d
Intellivision - misc reorg
2015-06-18 16:44:30 +00:00
goyuken
723a90fb30
intellivision - clean up corefileprovider usage
2015-02-05 23:07:48 +00:00
goyuken
82fcd0bc5e
refactor IVideoProvider into a service. uses in mainform and friends are still hacky
2015-01-14 22:37:37 +00:00
adelikat
d8a204572d
Add an IServiceProvider interface and make it a property of IEmulator, the purpose of this provider is to provide IEmulatorServices upon request. Make BasicServiceProvider and have all cores use it for now. BasicServiceProvider will return the core itself if the core itself is the requested type. He will also be able to return nested types (code not finished). Wired this up to the HasSavestates extension method (a method that has minimal value now) as a proof of concept.
2014-12-04 03:38:30 +00:00
adelikat
9adc45f4d1
Add a ServiceNotApplicable attribute for cores to mark things like SaveRam and ISettable as not applicable for the given core, update the CoreFeatureAnalysis dialog to not show these interfaces for the given core (and not mark them as incomplete). Set various cores accordingly
2014-11-30 23:41:54 +00:00
adelikat
a83d714c42
Break off IsLagFrame and LagCount from IEmulator and put into its own interface IInputPollable, and refactor cores as necessary. EmuHawk - account for the possibility that a core is not an IInputPollable, and do things like disable the lag counter menu item. Still some front end todos. Also still todo, move the InputCallbackSystem from CoreComm to IInputPollable
2014-11-30 20:29:30 +00:00
adelikat
76148ae111
Break off savestate functionality from IEmulator into IStatable and refactor things accordingly. Still todo (a big todo): EmuHawk should gracefully handle a core that is not an IStatable by disabling functionality dependent upon it (Savestates, Rewind, Tastudio, etc)
2014-11-30 16:42:58 +00:00
adelikat
865795049b
Break off saveram methods from IEmulator into a separate ISaveRam interface. Remove the setter for SaveRamModified (every single core was throwing an error on this, and no client code was using it). Remove these methods from cores that don't actually implement this interface
2014-11-30 15:22:08 +00:00
adelikat
0e82fff3ff
Clean out ClearSaveRam() calls since they are no longer used
2014-11-24 15:00:54 +00:00
adelikat
72cf4ed5e1
Intellivision - mark not implemented stuff
2014-11-24 01:05:47 +00:00
adelikat
bded999177
Create a FeatureNotImplemented attribute, the intend of which is to apply to any unimplemented method of an ICoreService method/property, set some methods in Intellivision to this, and have CoreFeatureAnalysis look for the presence of this attribute and report unimplemented properties/methods
2014-11-24 00:38:29 +00:00
adelikat
c9958748f1
Intellivision - remove IMemoryDomain and method, since it simply throws a NotImplementedException
2014-11-23 17:22:43 +00:00
jlennox
a64017366c
Create ISettable<T,T2>/ISettable interfaces. This checkin has not been extensively tested.
2014-10-19 01:22:47 +00:00
jlennox
10b6bed056
Add IDebuggable to relevant cores and remove non-implementations of GetCpuFlagsAndRegisters/SetCpuRegister
2014-10-18 22:30:06 +00:00
adelikat
5ba74c631c
Remove MemoryDomains from IEmulator into a new Interface, IMemoryDomains, Add this interface to existing cores, except null emulator (and removed memory domain related code from it). Refactored EmuHawk for ram tools to use an instance of IMemoryDomains rather than IEmulator, don't expose ram tools unless the core implements IMemoryDomains. Still a few misc todos, and probably some cleanup
2014-09-01 18:43:41 +00:00
goyuken
1d383a62cc
romloader stuffs, nag me if it breaks anything, i don't think it breaks anything
2014-08-23 19:06:37 +00:00
goyuken
f0c8bd3842
IEmulator: clarify naming and implementations so it's clear that CloneSaveRam() always returns a clone that you can do whatever you want with (but won't modify the underlying)
2014-08-13 17:52:13 +00:00
adelikat
01ba63dd09
Coleco/Intellivision - Replace patterns like "Key0" with "Key 0" in button names for consistency and remove a hack in bk2 code that accounts for it
2014-06-29 12:32:36 +00:00
adelikat
51660dd023
Add SetCpuRegister() to IEmulator. Implemented it in Atari 2600, 7800, C64, Neshawk, and technically dual gameboy (passes it to L and R where it will fail). The rest throw NotImplementedExceptions. Lua - add emu.setregister(), catches NotImplementedExceptions and informs the user.
2014-05-31 17:03:21 +00:00