Unindent `RomLoader.MakeGameFromDisc`

This commit is contained in:
YoshiRulz 2022-08-06 09:21:43 +10:00
parent 8f153fd503
commit 0236a820ec
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 52 additions and 55 deletions

View File

@ -238,9 +238,8 @@ namespace BizHawk.Client.Common
: discHasher.OldHash();
var game = Database.CheckDatabase(discHash);
if (game == null)
{
// try to use our wizard methods
if (game is not null) return game;
// else try to use our wizard methods
game = new GameInfo { Name = name, Hash = discHash };
Exception NoCoreForSystem(string sysID)
{
@ -248,7 +247,6 @@ namespace BizHawk.Client.Common
game.System = sysID;
return new NoAvailableCoreException(sysID);
}
switch (discType)
{
case DiscType.SegaSaturn:
@ -298,7 +296,6 @@ namespace BizHawk.Client.Common
game.System = VSystemID.Raw.PSX;
break;
}
}
return game;
}