Commit Graph

191 Commits

Author SHA1 Message Date
scrimpeh ef1bc65ce6 IInputPollable - Make IsLagFrame settable 2016-01-26 11:34:42 +01:00
adelikat ba21484ddd add IRegionable as an emulator service to indicate NTSC vs PAL, etc. Refactor cores that conveyed this information to use this service, fixed cheaty reflection to grab this info to use the service instead, marked some cores as region not applicable where it made sense to me (I'm sure I'm wrong in some cases) 2015-08-05 20:12:09 -04:00
adelikat 3541c9e975 Make the lag counter settable, and expose this functionality in lua 2015-07-09 13:05:30 -04:00
adelikat 5bcdfb5991 IInputPollable - remove the set on LagCount as it is not needed 2015-06-11 01:23:14 +00:00
pjgat09 c2dd59aa3a N64: Move the dirty hack from LoadState to the constructor instead to avoid problems with states saved on frame 0. 2015-03-17 00:11:08 +00:00
goyuken adc3e96ca8 iemulator single instance attribute. to find out about: PSX, Apple2 2015-03-03 00:23:50 +00:00
adelikat 36f4eff0f6 add ByteSize to MemoryDomain with a default of 1, set it to not 1 on appropriate domains (I probably missed some, or got some wrong). Have RamSearch use that instead of SystemInfo, remove ByteSize from SystemInfo since it is no longer needed 2015-02-22 15:19:38 +00:00
zeromus 656c6e0585 i knew that was too good to be true 2015-02-02 22:00:43 +00:00
zeromus 88bb1f5c83 change n64 configuration of C buttons to be UP DOWN LEFT RIGHT. dont think this will cause any bugs, but who knows 2015-02-02 21:46:34 +00:00
adelikat 8246de14aa IMemoryCallbackSystem - add a flag to indicate whether execute callbacks are available, in lua and the debugger, take this flag into account, also improve some availability checking in Lua memory callbacks. Flag N64 as not having execute callbacks available 2015-01-25 22:14:58 +00:00
zeromus 8d340a7c19 fix n64 disasm pinvoke 2015-01-23 20:28:47 +00:00
adelikat 29b056b972 N64 - wire of a disassembler, doesn't look like it works correctly, but at least the plumbing is done 2015-01-23 19:52:26 +00:00
adelikat 27d30df0cf Rip out the MemoryDomain.Size hack, and fix up the hex editor. Hex editor now works for N64 System bus, but will very much fail as soon as we have a domain greater than 32 bits 2015-01-18 16:00:20 +00:00
adelikat 91ffc17aae Refacotor MemoryDomain.Size to be long instead of int, still some small todos, but it compiles and seems to work 2015-01-18 15:25:47 +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 fbdb29b64c refactor IMemorydomains to be a domain list instead of having a domain property, refactor cores to register an IMemoryDomains instead of being one 2015-01-14 21:55:48 +00:00
adelikat d62ba4e2b4 Change IMemoryDomains to have an IMemoryDomainList instead of a MemoryDomainList, this is an incremental step into eventually having IMemoryDomains take over the properties of IMemoryDomainList, still todo: reduce the amount of needed functionality in IMemoryDomainList from old and not good code 2015-01-13 22:18:07 +00:00
adelikat 815cf4ab97 todo: N64 - learn to spell, fix cheats not defaulting to the system bus 2015-01-12 23:38:31 +00:00
adelikat 0f2197cec1 Break off ITracer from IDebuggable, rename to ITraceable and make it an IEmulatorService, refactor things accordingly 2014-12-23 01:58:12 +00:00
adelikat ffdeb618f7 IDebugable - add a CanStep() method, and implement it in all IDebuggable implementations 2014-12-20 13:29:57 +00:00
adelikat a8116297a0 Rename Register to RegisterValue 2014-12-20 13:16:15 +00:00
adelikat 7bebb66589 IDebuggable - refactor GetCpuFlagsAndRegisters to be IDictionary<string, Register> where Register is a value and a bitsize 2014-12-20 03:19:33 +00:00
adelikat d08fb39cb8 Refactor IDebuggable StepInto/Over/Out methods into void Step(StepType type); 2014-12-15 22:19:10 +00:00
adelikat 725a8fb092 Add StepInto(), StepOver(), StepOut() to IDebuggable, have all cores implement it with unimplemented dummy functions 2014-12-14 18:58:16 +00:00
adelikat 9fc46f6764 mark cores that would not ever use IDriveLight, a bit silly, but it keeps the feature list clean and that's currently my only source of sanity with keeping up with what needs to be done 2014-12-12 01:58:12 +00:00
adelikat 2d1a43dc65 MemoryCallbackSystem - simplify by having a single Add method with a MemoryCallbackType parameter, and some simplifying of client code as a result 2014-12-07 18:53:56 +00:00
adelikat 3dfd57197d N64 - cleanup after adding new services and such 2014-12-05 02:22:41 +00:00
adelikat 0b84beec88 Move MemoryCallbackSystem from CoreComm to IDebuggable and refactor accordingly, Lua - tell the user when memory callbacks are not available for a given core 2014-12-05 01:56:45 +00:00
adelikat f5cc38c9cd AsInputPollable() 2014-12-05 00:59:00 +00:00
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
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 5d512c4c5d N64 - break off ICoreService implementations into separate files 2014-11-30 15:38:39 +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 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
pjgat09 502caa2e37 N64: Output an error code when LoadLibrary fails 2014-10-13 23:20:18 +00:00
adelikat 72e29286c8 now that jabo is packaged with bizhawk, make it the default plugin 2014-09-27 21:31:07 +00:00
adelikat 52d3ad8467 N64 - fix issue 273 2014-09-27 21:15:51 +00:00
adelikat 25c2507013 N64 - change the expansion slot override notion. If a game in the gamdb has the expansion slot override, override the user's choice, but don't change the sync setting (otherwise all games they load will be set to this). In the N64 menu item, show the checked status based on if the core is actively using the expansion slot, not whether the sync setting is set. If the gamedb is overriding the user's choice make it clear by disabling the menu item. This commit message is longer than the changeset itself. 2014-09-27 12:56:55 +00:00
zeromus ed4c715a9f add ROM memorydomain to n64 2014-09-14 18:39:26 +00:00
zeromus cfa433a9a6 for issue #223 : create 2 workarounds for taskbar minimizing ding-and-fail bug and activate one of them. The bug is virtually impossible to fix and isnt really our fault. The bug is theoretically existing under other conditions than the "run n64 core" repro steps. The workaround might could be deployed in other situations as needed. 2014-09-14 09:11:34 +00:00
zeromus 2c8295ba76 Fix bug with core inventory launching n64 core with data that romgame had mangled in cases. todo: delete romgame. 2014-09-12 01:02:09 +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
pjgat09 a8684c34a6 N64: Hooked up the system bus domain. 2014-09-08 22:31:51 +00:00
adelikat 8a36049b81 N64 - start a system bus memory domain, doesn't yet work 2014-09-08 22:19:44 +00:00
adelikat 28bd6229c8 N64 - some core code reorg 2014-09-07 21:48:05 +00:00
zeromus d220b94e76 change n64 memdomain so that rdram is big endian, and also working now. not sure about the other memdomains, they could still be broken. 2014-09-07 18:43:31 +00:00
pjgat09 181313cdf9 N64: Removed checks to see if the correct jabo dll was present 2014-09-07 03:13:53 +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
adelikat a59793b55b N64 - Support getting an expansion slot flag from the gamedb, and set Majora's Mask and Donkey Kong 64 to use it 2014-09-07 00:23:15 +00:00
adelikat 88daf797db N64hawk - Expansion slot toggle, expansion being off by default, note: this is a sync setting 2014-09-06 23:03:34 +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
pjgat09 5dc7327c1f N64: Hopefully fix some crashes associated with restarting the core early in the emulation 2014-08-23 22:40:29 +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
pjgat09 fdb2e5a838 N64: Fixing the gamedb for jabo 2014-08-17 18:07:02 +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
pjgat09 ad66bc4f30 N64: Merged jabo's settings from PJ64's RDB into our gamedb. Tweaked the plugin settings screen to use those settings. 2014-08-07 02:48:01 +00:00
adelikat bbad6c90a4 N64 core - being picky - change IsLagFrame and IsViFrame to internal setters instead of public 2014-08-03 18:13:33 +00:00
adelikat b1cd40f276 N64 plugin config - Jabo - add per game settings logic and the Direct3D clear mode per game option, still todo: resolution width/height 2014-08-03 17:50:56 +00:00
adelikat 5908c0ab12 add Jabo settings to N64 plugin config, for non-game specific settings 2014-08-03 16:14:47 +00:00
adelikat da3f9db018 Make mupen-style lag a setting not a sync-setting 2014-08-03 13:06:53 +00:00
zeromus 532cd76af0 round 2: superior jabo dll handling through shared code, and fix major bug in previous version which made dlls fail to get located sometimes 2014-08-03 05:09:28 +00:00
adelikat 7fa58557a6 N64 - add a menu item for "Mupen style lag" 2014-08-03 01:16:11 +00:00
pjgat09 5e0ba6cd30 N64: Added an IsVIFrame flag 2014-08-03 00:00:26 +00:00
zeromus 9b70edb54c jabo check shouldnt depend on PWD for path resolution; add minimally acceptable hacky code to build dll dir based on executing assembly path 2014-07-27 02:13:23 +00:00
zeromus 8d7fec50c1 will this solve the hanging emuhawk process? 2014-07-27 02:11:42 +00:00
pjgat09 5ba1bf425a N64: Commented out the wireframe setting for jabo since it looks like there is no way to set it without opening the dll config window 2014-07-22 00:22:08 +00:00
pjgat09 cddb2a5fc5 N64: Jabo dll is now quietly patched when a rom is loaded 2014-07-22 00:08:57 +00:00
pjgat09 a5d57a5a4f N64: Forgot the antialiasing level setting 2014-07-20 19:24:06 +00:00
pjgat09 e86448c825 N64: Cast enum types to int before passing them to the plugin 2014-07-20 19:13:43 +00:00
adelikat f5ff868c50 N64 Sync Settings - remove GetPluginSettings from IPluginSettings and make an extension method, rather than having every plugin implement the same method in the same way 2014-07-20 18:25:47 +00:00
adelikat 15c7dfe269 revert some variable renaming in the glide plugin 2014-07-20 17:49:04 +00:00
adelikat fdf9a97714 pretty up Jabo enum value names, since they show up in the gui 2014-07-20 17:23:04 +00:00
adelikat 4382dc0c9a N64 sync settings - clean up object convert public fields to properties 2014-07-20 17:10:20 +00:00
adelikat 6819459292 N64 sync settings - clean up some stuff and fix the plugin type being a read-only proprty in the new config dialog 2014-07-20 16:59:03 +00:00
xmikecampx7 1342dae39d Fixed Descriptions of N64SyncSettings 2014-07-20 16:32:17 +00:00
xmikecampx7 108dfcbe54 Added N64 Syncsettings Documentation 2014-07-20 16:12:05 +00:00
pjgat09 65345077a8 N64: Fixed sync settings not being passed to the plugins as a result of changing the fields to properties. Jabo setting are now passed. 2014-07-20 16:00:56 +00:00
xmikecampx7 631d4d625d Added DefaultValues and Displaynames to GlideMk2 SyncSettings 2014-07-20 15:05:22 +00:00
xmikecampx7 402f269208 Added DefaultValues and DisplayNames to Glide Sync Settings 2014-07-20 14:57:02 +00:00
adelikat 2928137a20 N64 sync settings - some reorg 2014-07-20 14:33:57 +00:00
adelikat 042e72bfb6 New N64 plugin config settings dialog, including adding jabo settings 2014-07-20 02:57:26 +00:00
pjgat09 04f7664ec9 N64: Started fleshing out the jabo sync settings 2014-07-19 21:53:31 +00:00
pjgat09 b82c83c188 N64: Added a jabo sync settings stub to be filled in later. Added jabo to the plugin selection dialog 2014-07-19 16:59:27 +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
adelikat 402db49ed8 PCE - add ability to set connected controllers (up to 5) as sync settings, with a Controller settings dialog 2014-06-28 22:48:07 +00:00
adelikat a45f7d7154 N64 - oops #2 2014-06-28 13:00:53 +00:00
adelikat 9378dc5921 N64 - oops 2014-06-28 12:58:13 +00:00
adelikat e5f340c365 Oops, fix something I broke last night with N64 controllers 2014-06-25 13:52:38 +00:00
adelikat 5f71bf11c8 N64 - dynamically generate buttons in controller definition based on connected controllers, Virtualpads - show pads based on connected controllers 2014-06-25 02:18:11 +00:00
adelikat 7c7182b75d N64 - default to one connected controller with no pak 2014-06-25 01:51:16 +00:00
null_ptr 710e461165 Fixed flickering on games that do not render during every vi frame 2014-06-10 22:21:40 +00:00
adelikat aa2ae170f3 N64 - make video size a setting, not a sync setting 2014-06-01 12:06:22 +00:00