commit 54c2e6d4e513cd74fa35e05f9de840c4a8647b8d
Author: Nuke.YKT <alexeytf2@gmail.com>
AuthorDate: Fri May 29 02:12:23 2015 +0900
Commit: Nuke.YKT <alexeytf2@gmail.com>
CommitDate: Fri May 29 02:12:23 2015 +0900
One result checking is enought to detect OPL3.
---
opl/opl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}