[Gambatte] Open Bus Emulation ()

* [Gambatte] Open Bus Emulation

* Fix regressions

* a
This commit is contained in:
CasualPokePlayer 2021-06-14 15:50:43 -07:00 committed by GitHub
parent b8f5050d6c
commit ea369408fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 1 deletions
Assets/dll
src/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy
submodules

Binary file not shown.

View File

@ -118,6 +118,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
[DefaultValue(false)]
public bool MulticartCompat { get; set; }
[DisplayName("Cart Bus Pull-Up Time")]
[Description("Time it takes for the cart bus to pull-up to 0xFF in CPU cycles. Used to account for differences in pull-up times between carts/consoles.")]
[DefaultValue(8)]
public uint CartBusPullUpTime { get; set; }
[DisplayName("Realtime RTC")]
[Description("If true, the real time clock in MBC3 and HuC3 games will reflect real time, instead of emulated time. Ignored (treated as false) when a movie is recording.")]
[DefaultValue(false)]

View File

@ -180,6 +180,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
LibGambatte.gambatte_setrtcdivisoroffset(GambatteState, _syncSettings.RTCDivisorOffset);
LibGambatte.gambatte_setcartbuspulluptime(GambatteState, _syncSettings.CartBusPullUpTime);
_cdCallback = new LibGambatte.CDCallback(CDCallbackProc);
NewSaveCoreSetBuff();

View File

@ -279,6 +279,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
[DllImport("libgambatte.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void gambatte_setrtcdivisoroffset(IntPtr core, int rtcDivisorOffset);
/// <summary>
/// Sets how long until the cart bus pulls up in CPU cycles.
/// This is used to account for differences in pull-up times between carts/consoles.
/// </summary>
/// <param name="core">opaque state pointer</param>
/// <param name="cartBusPullUpTime">Pull-Up Time</param>
[DllImport("libgambatte.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void gambatte_setcartbuspulluptime(IntPtr core, uint cartBusPullUpTime);
/// <summary>
/// Returns true if the currently loaded ROM image is treated as having CGB support.
/// </summary>

@ -1 +1 @@
Subproject commit 7054db26504566649882688244be59cd75c29a19
Subproject commit 97c6008635508bda05e198af393805af49a38563