Fix OPL detect.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1536
This commit is contained in:
Simon Howard 2009-05-28 18:34:05 +00:00
parent 223879d264
commit b695843cc5

View file

@ -78,7 +78,7 @@ int DetectOPL(void)
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)