[Gambatte] Open Bus Emulation (#2798)
* [Gambatte] Open Bus Emulation * Fix regressions * a
This commit is contained in:
parent
b8f5050d6c
commit
ea369408fb
Binary file not shown.
|
@ -118,6 +118,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
public bool MulticartCompat { get; set; }
|
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")]
|
[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.")]
|
[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)]
|
[DefaultValue(false)]
|
||||||
|
|
|
@ -180,6 +180,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
|
|
||||||
LibGambatte.gambatte_setrtcdivisoroffset(GambatteState, _syncSettings.RTCDivisorOffset);
|
LibGambatte.gambatte_setrtcdivisoroffset(GambatteState, _syncSettings.RTCDivisorOffset);
|
||||||
|
|
||||||
|
LibGambatte.gambatte_setcartbuspulluptime(GambatteState, _syncSettings.CartBusPullUpTime);
|
||||||
|
|
||||||
_cdCallback = new LibGambatte.CDCallback(CDCallbackProc);
|
_cdCallback = new LibGambatte.CDCallback(CDCallbackProc);
|
||||||
|
|
||||||
NewSaveCoreSetBuff();
|
NewSaveCoreSetBuff();
|
||||||
|
|
|
@ -279,6 +279,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
[DllImport("libgambatte.dll", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport("libgambatte.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void gambatte_setrtcdivisoroffset(IntPtr core, int rtcDivisorOffset);
|
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>
|
/// <summary>
|
||||||
/// Returns true if the currently loaded ROM image is treated as having CGB support.
|
/// Returns true if the currently loaded ROM image is treated as having CGB support.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7054db26504566649882688244be59cd75c29a19
|
Subproject commit 97c6008635508bda05e198af393805af49a38563
|
Loading…
Reference in New Issue