NES: better error message for certain gamedb gaffe

This commit is contained in:
goyuken 2012-10-15 23:53:14 +00:00
parent fbcc7375de
commit e45a80f6d5
1 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo
game.name = gi.Name;
cart.DB_GameInfo = gi;
cart.game = game;
if (!dict.ContainsKey("board"))
throw new Exception("NES gamedb entries must have a board identifier!");
cart.board_type = dict["board"];
cart.prg_size = -1;
cart.vram_size = -1;