the . is neccessary also make it case insensitive

This commit is contained in:
CasualPokePlayer 2022-06-27 14:39:10 -07:00
parent c3047bfad9
commit b730af7b73
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Computers.MSX
SyncSettings = lp.SyncSettings ?? new MSXSyncSettings();
var rom = lp.Roms.FirstOrDefault() ?? throw new Exception("Must have a ROM for MSX!");
if (rom.Extension is not "rom")
if (rom.Extension.ToLowerInvariant() is not ".rom")
{
throw new NotSupportedException("Only MSX .rom files are supported!");
}