SGB Cheats Fix (#2980)

NOTE: LLE SGB cores seem to report an SNES ID anyways. Cheat code converter would need some work if changing them to report a SGB ID (also see https://github.com/TASEmulators/BizHawk/issues/2863#issuecomment-881970014)
This commit is contained in:
CasualPokePlayer 2021-10-26 12:32:11 -07:00 committed by GitHub
parent 080ed049f5
commit bb318df49e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace BizHawk.Client.Common.cheats
{
return _systemId switch
{
"GB" => GameBoy(code),
"GB" or "SGB" => GameBoy(code), // FIXME: HLE SGB cores report a "SGB" ID, while LLE SNES cores report a "SNES" ID, is this intentional?
"GBA" => Gba(code),
"GEN" => Gen(code),
"N64" => N64(code),
@ -55,7 +55,6 @@ namespace BizHawk.Client.Common.cheats
if (code.LastIndexOf("-") == 7 && code.IndexOf("-") == 3)
{
return GbGgGameGenieDecoder.Decode(code);
}
// Game Shark codes

View File

@ -14,7 +14,7 @@ namespace BizHawk.Client.EmuHawk
{
[Tool(
released: true,
supportedSystems: new[] { "GB", "GBA", "GEN", "N64", "NES", "PSX", "SAT", "SMS", "SNES" },
supportedSystems: new[] { "GB", "GBA", "GEN", "N64", "NES", "PSX", "SAT", "SGB", "SMS", "SNES" },
unsupportedCores: new[] { CoreNames.Snes9X })]
public partial class GameShark : ToolFormBase, IToolFormAutoConfig
{