make pce cd bios use path configuration
This commit is contained in:
parent
f415bff02e
commit
2d11f91d16
|
@ -981,12 +981,15 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
case "PCE":
|
case "PCE":
|
||||||
case "PCECD":
|
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.");
|
MessageBox.Show("PCE-CD System Card not found. Please check the BIOS path in Config->Paths->PC Engine.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
rom = new RomGame(new HawkFile(Global.Config.PathPCEBios));
|
|
||||||
|
rom = new RomGame(new HawkFile(biosPath));
|
||||||
|
|
||||||
if (rom.GameInfo.Status == RomStatus.BadDump)
|
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" +
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rom = new RomGame(file);
|
rom = new RomGame(file);
|
||||||
|
|
Loading…
Reference in New Issue