summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuke.YKT2015-05-29 02:12:23 +0900
committerNuke.YKT2015-05-29 02:12:23 +0900
commit54c2e6d4e513cd74fa35e05f9de840c4a8647b8d (patch)
tree86634306009b0d05db39d4de665ecaa8d46b358b
parent7c377fc88a3fbb7f69b91a15dc414c8965624a89 (diff)
downloadchocolate-doom-54c2e6d4e513cd74fa35e05f9de840c4a8647b8d.tar.gz
chocolate-doom-54c2e6d4e513cd74fa35e05f9de840c4a8647b8d.tar.bz2
chocolate-doom-54c2e6d4e513cd74fa35e05f9de840c4a8647b8d.zip
One result checking is enought to detect OPL3.
-rw-r--r--opl/opl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opl/opl.c b/opl/opl.c
index 92ed3b5b..a6ad4a9d 100644
--- a/opl/opl.c
+++ b/opl/opl.c
@@ -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;
}