Commit Graph

74 Commits

Author SHA1 Message Date
adelikat 309088211c Move TraceBuffer from CoreComm to IDebugable and refactor accordingly 2014-12-05 00:05:40 +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
goyuken 7f9adc0c1d dgb: reenable input callbacks. 2014-12-04 02:04:14 +00:00
goyuken 5f770e4696 update pad callback infrastructure in vbanext core, remove unused stub in lynx core, disable in dual gb core until i get around to it, better comment in gb core 2014-12-04 01:46:59 +00:00
adelikat a07263c04e Move InputCallbackSystem from CoreComm to IInputPollable, and refactor all cores accordingly. Lua - OnInputPoll() - log to the user when attemping to add a callback of this type to a core that has not implemented input callbacks. Mark all unmanaged cores' implementations of the InputCallbackSystem as FeatureNotImpleented, won't have any effect on functionality, but will help us keep track of the fact that they still have a bit of work to do. Still todo: ActiveChanged event handler on the base implementation of IInputCallbackSystem 2014-12-04 00:43:12 +00:00
adelikat 8cffecede9 ditto 2014-11-30 20:40:17 +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 9c285e3e3a Put NotImplemented attribute on a bunch of things, and remove IMemoryDomains from a few cores that were implementing it but throwing a NotImplementedException 2014-11-24 01:17:05 +00:00
adelikat 1832894405 IDebuggable - GetCpuFlagsAndRegisters() - refactor to make it an IDictionary instead of Dictionary 2014-11-23 16:22:02 +00:00
goyuken 0a17fadb8e gb: add mute sound as a setting. most useful in dual mode. 2014-11-16 21:56:32 +00:00
goyuken dc2ca1f010 remove the extra ISettable (non-generic argument) interface and corresponding crud from cores, and replace with a shim class 2014-10-31 15:46:13 +00:00
goyuken ff95066672 quicknes: reject (with the appropriate unsupported exception) any bootgod positive euro rom 2014-10-29 18:58: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
goyuken 184b4dcba9 change some cores to use filedata instead of romdata. NES handles headers internally, and others shouldn't ever have headers. 2014-09-12 15:39:04 +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 c905b6fed2 dual gameboy: hook up to front end cable connected status indicator 2014-08-23 01:30:22 +00:00
goyuken 047f148f20 dual gameboy: with the savestates being recently obsoleted, take this opportunity to make actual text savestates 2014-08-18 17:21:17 +00:00
goyuken 56afd7c482 gb: minor cleanup 2014-08-18 16:26:40 +00:00
goyuken ca7a7886ed dual gameboy: SAVESTATES OBSLETEEDDDEEDDDDDDDDDDDDDDD. link cable connection toggling 2014-08-18 02:31:42 +00:00
goyuken d7f39ca831 vba next: coreside work for alternate palettes 2014-08-17 20:05:56 +00:00
goyuken ceae8d71b5 memory domain: minor refactor and cleanup 2014-08-15 21:21:17 +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
goyuken 8cfc640d1e woop woop call the cops see if i care 2014-08-04 22:25:07 +00:00
goyuken 4deda7eb91 settings cleanup 2014-08-03 22:19:55 +00:00
goyuken 56467334b3 gambatte: throw unsupportedmapperexception when appropriate. libsnes: throw cgbexception when trying to load cgb only game in sgb 2014-08-01 14:56:23 +00:00
adelikat 9e49c29240 pretty up Gameboy setting display names 2014-07-20 00:16:40 +00:00
goyuken 1b4a8a0b23 settings cleanup 2014-07-14 16:56:23 +00:00
goyuken fb133da0c5 fix some internal settings infrastructure 2014-07-14 16:10:45 +00:00
adelikat fd80c62cdb More Util methods -> extension methods 2014-07-03 19:20:34 +00:00
adelikat 1c0eca190e Remove some unused extensions, Remove Extensions.cs and move methods into better named files with their own namespaces 2014-07-03 18:54:53 +00:00
goyuken 0c57d7954f gameboi: fix crash 2014-06-23 03:44:46 +00:00
goyuken 9a6decef06 GB: cleanup and stuff 2014-06-16 15:59:39 +00:00
goyuken e3cb22889a add some extra error checking to the text savestate system used by gameboy and wonderswan. does not change the actual savestate format at all 2014-06-04 18:53:57 +00:00
adelikat 3917e7c528 Automate the about box 2014-06-01 01:57:22 +00:00
goyuken 512dc84334 would have sucked to not find that bug 2014-05-31 20:34:13 +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
goyuken 58efa286df move stuff 2014-05-31 16:12:59 +00:00
goyuken 8f87c2e854 gameboy: tweak text savestates a bit in preparation to reuse some code for the wonderswan savestates 2014-05-31 04:01:07 +00:00
goyuken 490a3dc3cf gameboy: support setting RTC initial time for TAS, and support chaining the RTC to the real clock for non-TAS. 2014-05-12 17:24:43 +00:00
goyuken 93b710e4ab gambatte: make RTC run at the correct 59.7fps instead of 60fps 2014-05-12 04:08:22 +00:00
goyuken 1ef04c0cb5 gambatte: support text savestates 2014-05-11 20:48:19 +00:00
goyuken 5710282ac6 gambatte: eliminate some unused code 2014-05-11 15:40:02 +00:00
goyuken 975ced7e38 gambatte: break stuff. don't use 2014-05-10 04:22:12 +00:00
goyuken c687ac7cfd gambatte: rip out unused save directory and gameshark\gamegenie internal stuff 2014-05-07 22:26:13 +00:00
goyuken 7b95dd4745 gambatte - (internal) rip out the memory refresher system. pointless overcomplex garbage that never solved any problems 2014-05-07 21:34:19 +00:00