Commit Graph

53 Commits

Author SHA1 Message Date
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 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
goyuken 6d04f9089a NES: show more informative error logs for certain INES header screwballs 2014-11-27 18:03:00 +00:00
adelikat 0e82fff3ff Clean out ClearSaveRam() calls since they are no longer used 2014-11-24 15:00:54 +00:00
adelikat 1832894405 IDebuggable - GetCpuFlagsAndRegisters() - refactor to make it an IDictionary instead of Dictionary 2014-11-23 16:22:02 +00:00
goyuken f3e9958f07 quicknes: support unplugging controllers 2014-11-01 17:44:04 +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
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 ad5b60f137 Create a MissingFirmwareException in Emulation.Common, and catch this in the Rom loading logic, on the client side, respond to this type of error with a nice message and an option to configure their firmware. Have NesHawk throw this exception when there is a missing FDS Bios. Other cores will need to be implemented this way too at some point 2014-07-31 21:15:07 +00:00
goyuken 3e5945660f tidy 2014-07-23 15:45:30 +00:00
adelikat fd80c62cdb More Util methods -> extension methods 2014-07-03 19:20:34 +00:00
goyuken d83c56a9d8 NES: internal cleanup and commenting 2014-07-02 15:21:42 +00:00
adelikat 1c0f8674c3 SetCpuRegister() - don't cast PC reg to byte! Implement on SMS, Coleco, and TI-83 2014-05-31 18:25: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
goyuken 299c27ae6e NESHawk: fix desync bug when using reset or power and frame precise save/loadstate 2014-05-26 01:29:00 +00:00
goyuken 59440c1d4d NES stuff 2014-05-23 15:10:14 +00:00
adelikat e96b81d7ab Rip out some "movies 1.0" hacks 2014-05-18 16:28:56 +00:00
goyuken 3405369d58 neshawk: fastererer 2014-05-14 15:46:16 +00:00
goyuken 3fa2b4629c NES: switch to quicknes palette as defaut 2014-05-13 23:26:39 +00:00
goyuken b0970451aa internal infrastructure for video presentation changes (aspect ratio, apparent size, etc) 2014-04-30 23:48:37 +00:00
adelikat de1cb218a6 Add more info to IEmulator CoreAttributes, add status bar icon that gives the name of the current core with a tooltip with additional info, put bizhawk icon on "in house" cores, and the icon of the ported emulator on ported cores. Still todo: icons for ported cores other than quicknes 2014-04-25 01:19:57 +00:00
adelikat c74019a54d Add a CoreAttributes class with a CoreName field, and apply it to all cores, when recording a new movie, add a core header line that captures this name 2014-04-22 00:38:59 +00:00
adelikat a61ff53d9c Change IEmulator.GetCpuFlagsAndRegisters() to a Dictionary, fix a warning, throw NotImplemented exceptions in cores that don't implement this method rather than returning an empty list. Start Debugger UI User Controls 2014-04-19 22:23:13 +00:00
goyuken 29475fb24d nes: misc blah 2014-04-09 22:23:19 +00:00
goyuken 8c7b1da678 NES: fix two regressions from previous commit; one broke all UNIF, and one broke some sachen boards 2014-04-09 19:39:04 +00:00
goyuken 58079850ae NES -- rework autodetection code in preparation for iNES 2.0 support. this commit likely breaks some things; exhaustive testing to come 2014-04-09 18:13:19 +00:00
goyuken 804fed9375 NES: infrastructure stuff 2014-03-04 23:18:10 +00:00
goyuken 3ffde6b88a NES: rework controller infrastructure. zappers and such will be coming soon now 2014-02-28 04:05:36 +00:00
goyuken dcb2098055 NES: fix some peek memory semantics 2014-02-27 20:58:00 +00:00
goyuken 7a9eb9f6cb change some memory domains to exception out on out of range access instead of silent masking 2014-02-26 20:18:48 +00:00
zeromus 7b354ef8b9 change NES board analysis to prioritize gamedb. this would allow users to control the operations, instead of nescartdb always taking control. not sure if this is OK, but I think it is. 2014-02-16 06:16:55 +00:00
goyuken 25e7355fe4 NES: region override. now you can add Subor Style to all of your favourite games 2014-02-06 02:06:17 +00:00
goyuken 41fe0b56d7 NES: fix off by one in the "Clip Left and Right" setting 2014-02-01 16:57:20 +00:00
goyuken 8bf8213a7d NES: truncate if a iNES file's supposed VROM size is longer than the leftover length of the iNES file. seems to fix some hacks\translations 2014-01-21 22:29:51 +00:00
goyuken 4191537359 revert r5763 2014-01-06 21:50:52 +00:00
goyuken d191575fd2 NES internal infrastructure 2014-01-06 21:33:30 +00:00
goyuken a399dbe91e NES: Move boardproperties into movie 2.0 syncsettings objects, and add a rudimentary UI for changing them 2014-01-01 03:03:10 +00:00
goyuken 433a0f7925 NES: fix oops 2013-12-24 22:37:45 +00:00
goyuken d37796ab1c more new core config framework; this time GAEMBOY 2013-12-23 02:51:41 +00:00
goyuken f992672051 NES add sound volume settings to config object 2013-12-22 21:47:16 +00:00
goyuken 0347fc5eef core settings stuff etc 2013-12-22 20:41:21 +00:00
goyuken 0cd5af1843 rework NES palette config in new core config system 2013-12-22 06:55:34 +00:00
goyuken bd205f47dc update our newtonsoft json.net to version 5.0 release 8. this fixes up abstract class handling so that the CoreSettings can work correctly.
tweak Binding, RecentFiles, and PathEntry to work with the new serializer.  on updating to this revision, you should be able to keep all config.ini settings except for hotkey bindings, path layouts, and recent files list.
start implementation of new CoreSettings and CoreSyncSettings.  at the moment, it's only partially done for NES.
2013-12-22 00:44:39 +00:00
goyuken e95d7b8cd7 fix the mess i made yesterday with IEmuLoadHelper (I did not know at the time, but it's 99% the same as the existing ICoreFileProvider) 2013-12-10 17:58:12 +00:00