diff options
author | Nuke.YKT | 2015-05-29 02:12:23 +0900 |
---|---|---|
committer | Nuke.YKT | 2015-05-29 02:12:23 +0900 |
commit | 54c2e6d4e513cd74fa35e05f9de840c4a8647b8d (patch) | |
tree | 86634306009b0d05db39d4de665ecaa8d46b358b | |
parent | 7c377fc88a3fbb7f69b91a15dc414c8965624a89 (diff) | |
download | chocolate-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |