shithub: choc

Download patch

ref: b695843cc549e3de4845e340c611efb0ae98866c
parent: 223879d264009f4678803651f885214f84606cb7
author: Simon Howard <fraggle@gmail.com>
date: Thu May 28 14:34:05 EDT 2009

Fix OPL detect.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1536

--- a/opl/examples/droplay.c
+++ b/opl/examples/droplay.c
@@ -78,7 +78,7 @@
     WriteReg(OPL_REG_TIMER_CTRL, 0x60);
     WriteReg(OPL_REG_TIMER_CTRL, 0x80);
 
-    return val1 != 0 || val2 != 0xc0;
+    return val1 == 0 && val2 == 0xc0;
 }
 
 void Init(void)