MSX; fix loading ROMs not in DB

This commit is contained in:
alyosha-tas 2022-01-30 21:12:05 -05:00
parent d6b33fbec6
commit 3fdbc2e329
1 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Computers.MSX
// look up game in db before transforming ROM
var hash_md5 = MD5Checksum.ComputePrefixedHex(rom);
var gi = Database.CheckDatabase(hash_md5);
var dict = gi.GetOptions();
var dict = (gi != null) ? gi.GetOptions() : null;
string s_mapper;
for (int i = 0; i < rom.Length; i++)
@ -69,8 +69,7 @@ namespace BizHawk.Emulation.Cores.Computers.MSX
mapper_1 = 2;
Console.WriteLine("Using Konami Mapper with SCC");
}
}
}
}
// if the original was not 64 or 48 k, move it (may need to do this case by case)