Commit Graph

69 Commits

Author SHA1 Message Date
adelikat b736d48911 use constants for core string names and simplify core core name getting logic 2020-04-18 09:55:57 -05:00
adelikat 6e40c46aa1 some nitpick cleanups 2020-04-12 13:29:58 -05:00
adelikat 62f3214ce2 create a memory callback based IInputCallbacks system that can be used by any core, wire it up to the mGBA core 2020-04-10 11:12:57 -05:00
adelikat f97ef09c41 mgba - pass in mgba class instead of core pointer to MGBAMemoryCallbackSystem, seems cleaner either way. Still crash 2020-04-02 17:40:27 -05:00
adelikat e44aa5d94a mGBA - pass core pointer to memory callback system 2020-04-02 17:40:27 -05:00
YoshiRulz 0ba7a5a7df
Rename axis-related types, members, and locals
I left a few methods where they had an equivalent *Bool*() for buttons, and also
left some in TAStudio that get serialised.
2020-03-31 17:29:55 +10:00
adelikat 028bc83c88 refactor CoreComm usage in some Gameboy cores 2020-03-15 09:28:27 -05:00
adelikat a884282fa4 remove CoreComm NominalX/Y, those values never different from buffer w/h for cores that set them which were only the gb/gba platforms and the original dualGb. The result defaulted to a very random 640x480. Instead just use the buffer w/h, which is a very reasonable video default 2020-03-14 17:06:42 -05:00
adelikat 185dbda19a misc redundant code removal, empty argument in object intiializer, redundant elses 2020-02-25 15:14:13 -06:00
YoshiRulz 3afcf416e8
Follow attribute class best practices, cleanup docs on attributes 2020-02-19 03:54:50 +10:00
feos 340fe48f3a finish mgba tracer 2020-02-03 22:23:35 +03:00
feos b1be2f5937 bump mgbahawk version 2020-02-03 12:55:19 +03:00
feos 335a55306f mGBA trace logging 2020-02-03 12:50:41 +03:00
feos 5ca08b6c29
Camhack support (#1725)
for the camhack to work we have to save a state, hack memory, advance twice to see the changes, then load the state to prevent desync. since we can omit the framebuffer in savestates, loading them can happen without updating the screen, so the hacked camera remains visible.

advancing 2 frames automatically is done like tastudio does it when it seeks to a frame, only from lua now.

and the most questionable part is "invisible emulation", which is how Gens calls this IIRC, when everything that can distract or slow us down is skipped: sound, video, tools updates.

new lua functions:
- client.invisibleemulation()
- client.seekframe()

* for a test, mGBA core uses fake video and audio buffers and renders to them when we want to "skip" rendering. proper setup would involve actually skipping rendering those inside the core.
* allow disabling video and audio updates for gpgx too (proper approach, no fake buffers involved)
* add the script for Sonic Advance
2019-11-23 12:27:14 +03:00
feos 3a8b3361e3 minor tweak to mgba, update its version in hawk 2019-06-10 22:02:19 +03:00
James Groom 4e91f88af3
Use nameof in cores 2019-03-28 14:18:58 +11:00
alyosha-tas c19c7cd5c3 SubNESHawk
also Input register shift fix

# Conflicts:
#	BizHawk.Client.EmuHawk/MainForm.Designer.cs
#	BizHawk.Client.EmuHawk/MainForm.Events.cs
#	BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.IEmulator.cs
#	BizHawk.Emulation.Cores/Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs
#	BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs
2019-01-10 18:25:59 +03:00
feos 0dc8187cb5 update mgba info 2018-06-23 16:23:53 +03:00
nattthebear 213c8189e8 update mgba 2017-11-14 19:46:40 -05:00
adelikat c6e0e9fa57 Rename CoreAttributes to CoreAttribute as to not be a bad person 2017-07-12 14:10:55 -05:00
nattthebear cf723b5133 add new build of mgba 0.6-ish 2017-06-11 20:10:37 -04:00
adelikat 62a13d961d Move VsyncNum and VsyncDen out of CoreComm and into IVideoProvider 2017-05-05 11:21:37 -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 15a25bdd87 cleanup MGBAHawk code 2017-04-25 12:00:50 -05:00
adelikat 167ed41a51 Break up MGBAHawk into separate files 2017-04-25 11:42:03 -05:00
nattthebear d1ca433a93 mgba: registers 2017-04-22 21:59:55 -04:00
adelikat 72a59087b5 Use the IController indexing property less in preparation for removing it from the interface. Replaced with its more explicity counter-part .IsPressed() 2016-12-14 12:42:15 -06: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
adelikat b697110098 Rename ISoundProvider to IAsyncSoundProvider to more accurately describe what the service does 2016-12-09 10:24:43 -06:00
nattthebear da2d15341f mgba: Fix some of the audio channel disables not working. Fix audio channel disables not being restored on reboot core 2016-12-03 23:01:14 -05:00
nattthebear f67cb3c64f Issue #735: Add sound channel toggling on mgba 2016-11-27 17:33:05 -05:00
nattthebear cee88d6bdc Update mgba metadata to indicate that we are on version 0.5 2016-11-06 13:30:19 -05:00
nattthebear 0ae8bf13f7 GBA memory domain fix 2016-11-06 10:32:04 -05:00
nattthebear c3be2879bc Save state stuff mgba blah I'm bad 2016-10-25 18:14:20 -04:00
nattthebear c3973773e6 mgba: savestate redux 2016-10-22 20:49:42 -04:00
nattthebear b8b9201604 mgbahawk: savestates 2016-10-22 18:09:28 -04:00
nattthebear 36fb1e3d57 mgba 0.5: fix saveram. fix skip bios + hard reset. fix bg/obj disable. 2016-10-17 13:01:52 -04:00
nattthebear a76226fcc2 update mgba, saveram still broken 2016-10-08 11:58:52 -04:00
nattthebear 5bd9a67f62 mgba 0.5 rough in 2016-09-17 16:29:25 -04:00
nattthebear 9b46a6cb3f mgba: Game overrides from gamedb 2016-09-17 11:31:06 -04:00
nattthebear 24df291143 Update mgba to 0.4.1 2016-09-17 09:51:38 -04:00
zeromus 75173f2596 add sram memdomain to mgba 2016-04-18 21:46:27 -05:00
nattthebear 111648cf98 Break a bunch of memory domain stuff with pointless refactoring 2016-04-13 19:50:06 -04:00
zeromus 776e696e09 mgba - fix bug where hard reset caused memorydomains to get permanently wrecked 2016-03-27 16:35:34 -05:00
nattthebear 01dc05375d mgba - more state changes. WIP 2016-02-21 16:14:43 -05:00
nattthebear f66c625b8b Revert "Issue 441 - mgba - store saveram in savestates. No compatibility is kept with existing savestates"
This reverts commit a1f3b3d735.
2016-02-21 15:37:39 -05:00
nattthebear a1f3b3d735 Issue 441 - mgba - store saveram in savestates. No compatibility is kept with existing savestates 2016-02-21 10:11:38 -05:00
nattthebear 88467d2fbf mgba layer toggle 2016-02-21 08:54:00 -05:00
nattthebear 86a8c1dfd4 Slight changes to update mgba to 0.4.0 2016-02-07 12:51:00 -05:00