From 54c2e6d4e513cd74fa35e05f9de840c4a8647b8d Mon Sep 17 00:00:00 2001 From: Nuke.YKT Date: Fri, 29 May 2015 02:12:23 +0900 Subject: One result checking is enought to detect OPL3. --- opl/opl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opl') 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; } -- cgit v1.2.3