From f987ede70dc811cc9687af86b0bd41757209b22a Mon Sep 17 00:00:00 2001 From: James Groom Date: Fri, 22 Feb 2019 14:42:16 +1000 Subject: [PATCH] Fix magic mega drive detection --- BizHawk.Emulation.Cores/FileID.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/BizHawk.Emulation.Cores/FileID.cs b/BizHawk.Emulation.Cores/FileID.cs index f026b96e5b..5b343f7360 100644 --- a/BizHawk.Emulation.Cores/FileID.cs +++ b/BizHawk.Emulation.Cores/FileID.cs @@ -573,17 +573,9 @@ namespace BizHawk.Emulation.Cores //first we can check for SMD magic words. //since this extension is ambiguous, we can't be completely sure about it. but it's almost surely accurate if (CheckMagic(job.Stream, SimpleMagics.SEGAGENESIS)) - { - var ret = new FileIDResult(FileIDType.SMD, 95); - ret.ExtraInfo["type"] = "genesis"; - return ret; - } - + return new FileIDResult(FileIDType.SMD, 95) { ExtraInfo = { ["type"] = "genesis" } }; if (CheckMagic(job.Stream, SimpleMagics.SEGAMEGADRIVE)) - { - var ret = new FileIDResult(FileIDType.SMD, 95); - ret.ExtraInfo["type"] = "megadrive"; - } + return new FileIDResult(FileIDType.SMD, 95) { ExtraInfo = { ["type"] = "megadrive" } }; } //well... guess it's a disc. @@ -637,4 +629,4 @@ namespace BizHawk.Emulation.Cores } } -} \ No newline at end of file +}