Update Gambatte to fix RTC issues and output location of the DLL in the assets folder
This commit is contained in:
parent
9ca1b86316
commit
b2893d24c6
Binary file not shown.
|
@ -60,16 +60,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
switch (_syncSettings.ConsoleMode)
|
||||
{
|
||||
case GambatteSyncSettings.ConsoleModeType.GB:
|
||||
flags |= LibGambatte.LoadFlags.FORCE_DMG;
|
||||
break;
|
||||
case GambatteSyncSettings.ConsoleModeType.GBC:
|
||||
flags |= LibGambatte.LoadFlags.CGB_MODE;
|
||||
break;
|
||||
case GambatteSyncSettings.ConsoleModeType.GBA:
|
||||
flags |= LibGambatte.LoadFlags.GBA_CGB;
|
||||
flags |= LibGambatte.LoadFlags.CGB_MODE | LibGambatte.LoadFlags.GBA_FLAG;
|
||||
break;
|
||||
default:
|
||||
if (game.System == "GB")
|
||||
flags |= LibGambatte.LoadFlags.FORCE_DMG;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -86,18 +84,18 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
byte[] bios;
|
||||
string biosSystemId;
|
||||
string biosId;
|
||||
if ((flags & LibGambatte.LoadFlags.FORCE_DMG) == LibGambatte.LoadFlags.FORCE_DMG)
|
||||
{
|
||||
biosSystemId = "GB";
|
||||
biosId = "World";
|
||||
IsCgb = false;
|
||||
}
|
||||
else
|
||||
if ((flags & LibGambatte.LoadFlags.CGB_MODE) == LibGambatte.LoadFlags.CGB_MODE)
|
||||
{
|
||||
biosSystemId = "GBC";
|
||||
biosId = _syncSettings.ConsoleMode == GambatteSyncSettings.ConsoleModeType.GBA ? "AGB" : "World";
|
||||
IsCgb = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
biosSystemId = "GB";
|
||||
biosId = "World";
|
||||
IsCgb = false;
|
||||
}
|
||||
|
||||
if (_syncSettings.EnableBIOS)
|
||||
{
|
||||
|
|
|
@ -20,10 +20,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|||
[Flags]
|
||||
public enum LoadFlags : uint
|
||||
{
|
||||
/// <summary>Treat the ROM as not having CGB support regardless of what its header advertises</summary>
|
||||
FORCE_DMG = 1,
|
||||
/// <summary>Treat the ROM as having CGB support regardless of what its header advertises</summary>
|
||||
CGB_MODE = 1,
|
||||
/// <summary>Use GBA intial CPU register values when in CGB mode.</summary>
|
||||
GBA_CGB = 2,
|
||||
GBA_FLAG = 2,
|
||||
/// <summary>Use heuristics to detect and support some multicart MBCs disguised as MBC1.</summary>
|
||||
MULTICART_COMPAT = 4
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit bfac3302a0a26ba306b873e538d03168d4c4716f
|
||||
Subproject commit 0bbe14d99f7e529bf119461965b26b988930ebe0
|
Loading…
Reference in New Issue