rename DGB to GBL and make all link gb cores use it; todo: rename/fix shit

This commit is contained in:
CasualPokePlayer 2021-11-21 00:59:56 -08:00
parent 7c25241c4b
commit 92157d0af0
20 changed files with 36 additions and 51 deletions

View File

@ -32,7 +32,7 @@ namespace BizHawk.Client.Common
VSystemID.Raw.A78 => CoreSystem.Atari7800,
VSystemID.Raw.Coleco => CoreSystem.ColecoVision,
VSystemID.Raw.C64 => CoreSystem.Commodore64,
VSystemID.Raw.DGB => CoreSystem.DualGameBoy,
VSystemID.Raw.GBL => CoreSystem.GameBoyLink,
VSystemID.Raw.GB => CoreSystem.GameBoy,
VSystemID.Raw.GBA => CoreSystem.GameBoyAdvance,
VSystemID.Raw.GEN => CoreSystem.Genesis,
@ -57,8 +57,6 @@ namespace BizHawk.Client.Common
VSystemID.Raw.AmstradCPC => CoreSystem.AmstradCPC,
VSystemID.Raw.GGL => CoreSystem.GGL,
VSystemID.Raw.ChannelF => CoreSystem.ChannelF,
VSystemID.Raw.GB3x => CoreSystem.GB3x,
VSystemID.Raw.GB4x => CoreSystem.GB4x,
VSystemID.Raw.MAME => CoreSystem.MAME,
VSystemID.Raw.O2 => CoreSystem.Odyssey2,
VSystemID.Raw.MSX => CoreSystem.MSX,
@ -102,7 +100,7 @@ namespace BizHawk.Client.Common
CoreSystem.Atari7800 => VSystemID.Raw.A78,
CoreSystem.ColecoVision => VSystemID.Raw.Coleco,
CoreSystem.Commodore64 => VSystemID.Raw.C64,
CoreSystem.DualGameBoy => VSystemID.Raw.DGB,
CoreSystem.GameBoyLink => VSystemID.Raw.GBL,
CoreSystem.GameBoy => VSystemID.Raw.GB,
CoreSystem.GameBoyAdvance => VSystemID.Raw.GBA,
CoreSystem.Genesis => VSystemID.Raw.GEN,

View File

@ -15,7 +15,7 @@
ColecoVision,
Intellivision,
GameBoy,
DualGameBoy,
GameBoyLink,
GameBoyAdvance,
NintendoDS,
Nintendo64,
@ -34,8 +34,6 @@
ZXSpectrum,
AmstradCPC,
GGL,
GB3x,
GB4x,
ChannelF,
Odyssey2,
MAME,

View File

@ -576,7 +576,7 @@ namespace BizHawk.Client.Common
}
catch
{
DoLoadErrorCallback(ex.ToString(), VSystemID.Raw.DGB, LoadErrorType.Xml);
DoLoadErrorCallback(ex.ToString(), VSystemID.Raw.GBL, LoadErrorType.Xml);
return false;
}
}

View File

@ -28,8 +28,8 @@ namespace BizHawk.Client.Common
new[] { CoreNames.Gambatte, CoreNames.Bsnes, CoreNames.Bsnes115}),
(new[] { VSystemID.Raw.GB, VSystemID.Raw.GBC },
new[] { CoreNames.Gambatte, CoreNames.GbHawk, CoreNames.SubGbHawk }),
(new[] { VSystemID.Raw.DGB },
new[] { CoreNames.DualGambatte, CoreNames.GBHawkLink }),
(new[] { VSystemID.Raw.GBL },
new[] { CoreNames.GambatteLink, CoreNames.GBHawkLink, CoreNames.GBHawkLink3x, CoreNames.GBHawkLink4x }),
(new[] { VSystemID.Raw.PCE, VSystemID.Raw.PCECD, VSystemID.Raw.SGX },
new[] { CoreNames.TurboNyma, CoreNames.HyperNyma, CoreNames.PceHawk })
};
@ -314,7 +314,7 @@ namespace BizHawk.Client.Common
[VSystemID.Raw.SNES] = CoreNames.Snes9X,
[VSystemID.Raw.GB] = CoreNames.Gambatte,
[VSystemID.Raw.GBC] = CoreNames.Gambatte,
[VSystemID.Raw.DGB] = CoreNames.DualGambatte,
[VSystemID.Raw.GBL] = CoreNames.GambatteLink,
[VSystemID.Raw.SGB] = CoreNames.Gambatte,
[VSystemID.Raw.PCE] = CoreNames.TurboNyma,
[VSystemID.Raw.PCECD] = CoreNames.TurboNyma,

View File

@ -32,7 +32,7 @@ namespace BizHawk.Client.Common
[VSystemID.Raw.GEN] = "Genesis",
[COMBINED_SYSIDS_PCE] = "PC Engine",
[COMBINED_SYSIDS_GB] = "Gameboy",
[VSystemID.Raw.DGB] = "Dual Gameboy",
[VSystemID.Raw.GBL] = "Gameboy Link",
[VSystemID.Raw.TI83] = "TI83",
[VSystemID.Raw.A26] = "Atari 2600",
[VSystemID.Raw.A78] = "Atari 7800",
@ -51,8 +51,6 @@ namespace BizHawk.Client.Common
[VSystemID.Raw.NGP] = "NGP",
[VSystemID.Raw.PCFX] = "PCFX",
[VSystemID.Raw.ChannelF] = "Fairchild Channel F",
[VSystemID.Raw.GB3x] = "GB3x",
[VSystemID.Raw.GB4x] = "GB4x",
[VSystemID.Raw.VEC] = "VEC",
[VSystemID.Raw.O2] = "O2",
[VSystemID.Raw.MSX] = "MSX",
@ -211,9 +209,9 @@ namespace BizHawk.Client.Common
CommonEntriesFor(VSystemID.Raw.Coleco, basePath: Path.Combine(".", "Coleco"), omitSaveRAM: true),
CommonEntriesFor(VSystemID.Raw.DGB, basePath: Path.Combine(".", "Dual Gameboy")),
CommonEntriesFor(VSystemID.Raw.GBL, basePath: Path.Combine(".", "Gameboy Link")),
new[] {
PalettesEntryFor(VSystemID.Raw.DGB),
PalettesEntryFor(VSystemID.Raw.GBL),
},
CommonEntriesFor(COMBINED_SYSIDS_GB, basePath: Path.Combine(".", "Gameboy")),
@ -221,10 +219,6 @@ namespace BizHawk.Client.Common
PalettesEntryFor(COMBINED_SYSIDS_GB),
},
CommonEntriesFor(VSystemID.Raw.GB3x, basePath: Path.Combine(".", "GB3x")),
CommonEntriesFor(VSystemID.Raw.GB4x, basePath: Path.Combine(".", "GB4x")),
CommonEntriesFor(VSystemID.Raw.GBA, basePath: Path.Combine(".", "GBA")),
CommonEntriesFor(VSystemID.Raw.GEN, basePath: Path.Combine(".", "Genesis")),

View File

@ -367,22 +367,21 @@ namespace BizHawk.Client.Common
["DPad L"] = 'L',
["DPad R"] = 'R',
},
[VSystemID.Raw.DGB] = new()
{
["Toggle Cable"] = 'L'
},
[VSystemID.Raw.GB3x] = new()
[VSystemID.Raw.GBL] = new()
{
// gbhawk
["Toggle Cable"] = 'L',
["Toggle Cable LC"] = 'L',
["Toggle Cable CR"] = 'C',
["Toggle Cable RL"] = 'R'
},
[VSystemID.Raw.GB4x] = new()
{
["Toggle Cable RL"] = 'R',
["Toggle Cable UD"] = 'U',
["Toggle Cable LR"] = 'L',
["Toggle Cable X"] = 'X',
["Toggle Cable 4x"] = '4'
["Toggle Cable 4x"] = '4',
// gambatte
["Toggle Link Connection"] = 'L',
["Toggle Link Shift"] = 'F',
["Toggle Link Spacing"] = 'C',
},
[VSystemID.Raw.Lynx] = new()
{

View File

@ -1997,7 +1997,7 @@ namespace BizHawk.Client.EmuHawk
case VSystemID.Raw.ZXSpectrum:
zXSpectrumToolStripMenuItem.Visible = true;
break;
case VSystemID.Raw.DGB when Emulator is GambatteLink:
case VSystemID.Raw.GBL when Emulator is GambatteLink:
DGBSubMenu.Visible = true;
break;
case VSystemID.Raw.GB:

View File

@ -24,11 +24,9 @@ namespace BizHawk.Emulation.Common
[VSystemID.Raw.C64] = "Commodore 64",
[VSystemID.Raw.ChannelF] = "Channel F",
[VSystemID.Raw.Coleco] = "ColecoVision",
[VSystemID.Raw.DGB] = "Game Boy Link",
[VSystemID.Raw.GBL] = "Game Boy Link",
[VSystemID.Raw.GB] = "GB",
[VSystemID.Raw.SGB] = "SGB",
[VSystemID.Raw.GB3x] = "Game Boy Link 3x",
[VSystemID.Raw.GB4x] = "Game Boy Link 4x",
[VSystemID.Raw.GBA] = "Gameboy Advance",
[VSystemID.Raw.GBC] = "Gameboy Color",
[VSystemID.Raw.GEN] = "Genesis",

View File

@ -20,12 +20,10 @@ namespace BizHawk.Emulation.Common
public const string ChannelF = "ChannelF";
public const string Coleco = "Coleco";
public const string DEBUG = "DEBUG";
public const string DGB = "DGB";
public const string GB = "GB";
public const string GB3x = "GB3x";
public const string GB4x = "GB4x";
public const string GBA = "GBA";
public const string GBC = "GBC";
public const string GBL = "GBL";
public const string GEN = "GEN";
public const string GG = "GG";
public const string GGL = "GGL";

View File

@ -225,7 +225,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink
public int Frame => _frame;
public string SystemId => VSystemID.Raw.DGB;
public string SystemId => VSystemID.Raw.GBL;
public bool DeterministicEmulation { get; set; }

View File

@ -25,7 +25,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink
public bool do_frame_fill;
[CoreConstructor(VSystemID.Raw.DGB)]
[CoreConstructor(VSystemID.Raw.GBL)]
public GBHawkLink(CoreLoadParameters<GBHawkLink.GBLinkSettings, GBHawkLink.GBLinkSyncSettings> lp)
{
if (lp.Roms.Count != 2)

View File

@ -420,7 +420,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x
public int Frame => _frame;
public string SystemId => VSystemID.Raw.GB3x;
public string SystemId => VSystemID.Raw.GBL;
public bool DeterministicEmulation { get; set; }

View File

@ -25,7 +25,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x
public bool do_frame_fill;
[CoreConstructor(VSystemID.Raw.GB3x)]
[CoreConstructor(VSystemID.Raw.GBL)]
public GBHawkLink3x(CoreLoadParameters<GBLink3xSettings, GBLink3xSyncSettings> lp)
{
if (lp.Roms.Count != 3)

View File

@ -999,7 +999,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink4x
public int Frame => _frame;
public string SystemId => VSystemID.Raw.GB4x;
public string SystemId => VSystemID.Raw.GBL;
public bool DeterministicEmulation { get; set; }

View File

@ -46,7 +46,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink4x
public bool do_frame_fill;
[CoreConstructor(VSystemID.Raw.GB4x)]
[CoreConstructor(VSystemID.Raw.GBL)]
public GBHawkLink4x(CoreLoadParameters<GBLink4xSettings, GBLink4xSyncSettings> lp)
{
if (lp.Roms.Count != 4)

View File

@ -267,7 +267,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
public int Frame { get; private set; }
public string SystemId => VSystemID.Raw.DGB;
public string SystemId => VSystemID.Raw.GBL;
public bool DeterministicEmulation => LinkedDeterministicEmulation();

View File

@ -5,11 +5,11 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
{
[PortedCore(CoreNames.DualGambatte, "sinamas/natt")]
[PortedCore(CoreNames.GambatteLink, "sinamas/natt")]
[ServiceNotApplicable(new[] { typeof(IDriveLight) })]
public partial class GambatteLink : ILinkable, IRomInfo
{
[CoreConstructor(VSystemID.Raw.DGB)]
[CoreConstructor(VSystemID.Raw.GBL)]
public GambatteLink(CoreLoadParameters<GambatteLinkSettings, GambatteLinkSyncSettings> lp)
{
if (lp.Roms.Count < MIN_PLAYERS || lp.Roms.Count > MAX_PLAYERS)

View File

@ -19,9 +19,9 @@ namespace BizHawk.Emulation.Cores
public const string CPCHawk = "CPCHawk";
public const string Cygne = "Cygne/Mednafen";
public const string DobieStation = "DobieStation";
public const string DualGambatte = "DualGambatte";
public const string Faust = "Faust";
public const string Gambatte = "Gambatte";
public const string Gambatte = "Gambatte";
public const string GambatteLink = "GambatteLink";
public const string GbHawk = "GBHawk";
public const string GBHawkLink = "GBHawkLink";
public const string GBHawkLink3x = "GBHawkLink3x";

View File

@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores
{
[Schema(VSystemID.Raw.DGB)]
[Schema(VSystemID.Raw.GBL)]
// ReSharper disable once UnusedMember.Global
public class DualGbSchema : IVirtualPadSchema
{

View File

@ -111,7 +111,7 @@ namespace BizHawk.Emulation.Cores
}
}
[Schema(VSystemID.Raw.GB3x)]
[Schema(VSystemID.Raw.GBL)]
public class Gb3XSchema : GbSchema
{
public override IEnumerable<PadSchema> GetPadSchemas(IEmulator core, Action<string> showMessageBox)
@ -123,7 +123,7 @@ namespace BizHawk.Emulation.Cores
}
}
[Schema(VSystemID.Raw.GB4x)]
[Schema(VSystemID.Raw.GBL)]
public class Gb4XSchema : GbSchema
{
public override IEnumerable<PadSchema> GetPadSchemas(IEmulator core, Action<string> showMessageBox)