Add NTSC clockbase for X1-010

reference: https://github.com/mamedev/mame/blob/master/src/mame/taito/champbwl.cpp#L620
This commit is contained in:
cam900 2023-03-12 21:03:11 +09:00
parent 40e153300f
commit d9211b2a97
2 changed files with 8 additions and 4 deletions

View file

@ -924,14 +924,14 @@ void DivPlatformX1_010::notifyInsDeletion(void* ins) {
void DivPlatformX1_010::setFlags(const DivConfig& flags) {
switch (flags.getInt("clockSel",0)) {
case 0: // 16MHz (earlier hardwares)
chipClock=16000000;
break;
case 1: // 16.67MHz (later hardwares)
chipClock=50000000.0/3.0;
break;
case 2: // 14.32MHz (see https://github.com/mamedev/mame/blob/master/src/mame/taito/champbwl.cpp#L620)
chipClock=COLOR_NTSC*4.0;
break;
// Other clock is used
default:
default: // 16MHz (earlier hardwares)
chipClock=16000000;
break;
}

View file

@ -855,6 +855,10 @@ bool FurnaceGUI::drawSysConf(int chan, DivSystem type, DivConfig& flags, bool mo
clockSel=1;
altered=true;
}
if (ImGui::RadioButton("14.32MHz (NTSC)",clockSel==2)) {
clockSel=2;
altered=true;
}
if (ImGui::Checkbox("Stereo",&stereo)) {
altered=true;