Fix magic mega drive detection

This commit is contained in:
James Groom 2019-02-22 14:42:16 +10:00 committed by GitHub
parent 469fc4836f
commit f987ede70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

View File

@ -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
}
}
}
}