Commit Graph

140 Commits

Author SHA1 Message Date
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 9422f02fa2 Feature List - hook up the ThrowsError() extension to IsImplemented 2014-11-30 14:52:52 +00:00
adelikat 4681fef0c2 Add an IsNull() extension method to IEmulator (checks for null and if NullEmulator) and replace EmuHawk NullEmulator checks with this method instead 2014-11-30 14:18:44 +00:00
adelikat 8c4e0f1203 Move some extension methods to a better location 2014-11-30 14:04:00 +00:00
goyuken 50c4414a93 confirm a few sizes in firmware database 2014-11-24 23:18:05 +00:00
zeromus 17d67fa366 small clarifications to firmware DB 2014-11-24 23:13:54 +00:00
scepheo 2c79016725 Added ThrowsError() and IsEmpty() extension methods for MethodInfo. 2014-11-24 19:51:27 +00:00
goyuken 9c02bf77ba wonderswan: clear out unused code for clear saveram 2014-11-24 18:50:18 +00:00
adelikat 0e82fff3ff Clean out ClearSaveRam() calls since they are no longer used 2014-11-24 15:00:54 +00:00
goyuken baa1556836 remove IEmulator.ClearSaveRam() from the interface 2014-11-24 02:22: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 4582a88798 Add an ICoreService interface that interfaces such as IEmulator and IDebuggable inherit 2014-11-23 20:30:53 +00:00
adelikat 1832894405 IDebuggable - GetCpuFlagsAndRegisters() - refactor to make it an IDictionary instead of Dictionary 2014-11-23 16:22:02 +00:00
adelikat 133d690363 Move IDebuggable to its own file, in anticipation of it having enough stuff to warrant it 2014-11-23 16:10:46 +00:00
adelikat e6e2972e3d Make IMemoryDomains inherit IEmulator and simplify some code slightly as a result 2014-11-23 16:03:04 +00:00
adelikat d64be5ed76 SystemID is Lynx not LYNX, cuz I said so 2014-11-21 01:32:15 +00:00
zeromus a7432a1e52 firmwaremanager now tracks filesizes, and filesizes of known firmwares are used to restrict scope of scanning 2014-11-13 00:09:16 +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
jlennox 01a994fe9c Break IDebuggable off from IEmulator 2014-10-18 22:13:25 +00:00
goyuken 9f274d93fb fix lynx firmware entry 2014-09-15 21:29:23 +00:00
goyuken 28a37a57da lynx mah boi https://www.youtube.com/watch?v=bNpLXo55yfw 2014-09-15 20:12:11 +00:00
adelikat 1693a2a1ed Cheats dialog - default to System Bus domain 2014-09-13 14:21:08 +00:00
zeromus 87e9d235f6 make some effort to support memdomain of full 32bits size, and use it for n64 system bus. make sure to check that its disabled in ramsearch engine and in hex editor. we could probably fix it to work in hex editor later. 2014-09-09 21:34:41 +00:00
goyuken 93eb656eba gpgx: account for the fact that rom and ram are emulated with 16 bit swaps 2014-09-08 14:50:36 +00:00
pjgat09 239df5d5f9 N64: Savestates now only save and load half the RDRAM if the expansion pack is not installed. 2014-09-07 00:43:19 +00:00
goyuken 8634d52bed remove the dummymemorydomainlist as its not needed anymore (if a core has no memory domains, it simply doesn't have the interface) 2014-09-01 21:09:25 +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
hegyak a46bd896ff Fixed a spelling error in FirmwareDatabase.cs relating to GBA BIOS 2014-08-24 14:41:49 +00:00
adelikat 56384da18b Front end for the Link Cable status bar icon 2014-08-23 01:18:59 +00:00
goyuken 6bc604e5a5 clean up comments on IEmulator slightly to explain the Settings\SyncSettings contract better 2014-08-20 18:08:22 +00:00
goyuken a25c6b4665 TextState (common to GB, WS, etc): clean up JSON formatting slightly. not a breaking change. 2014-08-18 18:00:22 +00:00
goyuken 8c4696609d vba next: memory domains 2014-08-16 05:45:31 +00:00
goyuken ceae8d71b5 memory domain: minor refactor and cleanup 2014-08-15 21:21:17 +00:00
goyuken 29f34ed79a clearsaveram() internal infrastructure changes 2014-08-13 19:16:48 +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 647adabea3 Simplify even more! 2014-08-13 01:44:22 +00:00
adelikat e9110be6ff simplify the InputCallbackSystem object 2014-08-13 01:43:28 +00:00
goyuken 28b26fadcc add a "defaults" button to the generic core config dialog, used by wonderswan, genesis, saturn, and 2600 2014-08-10 22:01:17 +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 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
adelikat 240264c3c5 Since Global.Game is never null now, add a IsNullInstance property to check against instead, and refactor code that checks for null 2014-07-21 22:21:52 +00:00
goyuken 2383cc3963 make r7219 consistent across different audio throttle settings 2014-07-13 17:12:26 +00:00
zeromus dc6daddff7 add option to disable fullscreen hacks (may increase latency) and snowy null emulator (may increase seizure rate) 2014-07-12 20:42:44 +00:00
adelikat fd80c62cdb More Util methods -> extension methods 2014-07-03 19:20:34 +00:00
adelikat bf88be8c72 Convert some more util methods to extension methods 2014-07-03 19:05:56 +00:00
adelikat 6cba3568ef More extension reorg 2014-07-03 17:23:03 +00:00