One result checking is enought to detect OPL3.

This commit is contained in:
Nuke.YKT 2015-05-29 02:12:23 +09:00
parent 7c377fc88a
commit 54c2e6d4e5

View file

@ -321,7 +321,7 @@ int OPL_Detect(void)
{
result1 = OPL_ReadPort(OPL_REGISTER_PORT);
result2 = OPL_ReadPort(OPL_REGISTER_PORT_OPL3);
if (result1 == 0x00 && result2 == 0xff)
if (result1 == 0x00)
{
return 2;
}