make pce cd bios use path configuration

This commit is contained in:
zeromus 2012-03-03 21:51:20 +00:00
parent f415bff02e
commit 2d11f91d16
1 changed files with 30 additions and 26 deletions

View File

@ -981,12 +981,15 @@ namespace BizHawk.MultiClient
{
case "PCE":
case "PCECD":
if (File.Exists(Global.Config.PathPCEBios) == false)
{
string biosPath = PathManager.MakeAbsolutePath(Global.Config.PathPCEBios, "PCE");
if (File.Exists(biosPath) == false)
{
MessageBox.Show("PCE-CD System Card not found. Please check the BIOS path in Config->Paths->PC Engine.");
return false;
}
rom = new RomGame(new HawkFile(Global.Config.PathPCEBios));
rom = new RomGame(new HawkFile(biosPath));
if (rom.GameInfo.Status == RomStatus.BadDump)
MessageBox.Show("The PCE-CD System Card you have selected is known to be a bad dump. This may cause problems playing PCE-CD games.\n\n" +
@ -1011,6 +1014,7 @@ namespace BizHawk.MultiClient
break;
}
}
}
else
{
rom = new RomGame(file);