mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
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:
parent
40e153300f
commit
d9211b2a97
2 changed files with 8 additions and 4 deletions
|
@ -924,14 +924,14 @@ void DivPlatformX1_010::notifyInsDeletion(void* ins) {
|
||||||
|
|
||||||
void DivPlatformX1_010::setFlags(const DivConfig& flags) {
|
void DivPlatformX1_010::setFlags(const DivConfig& flags) {
|
||||||
switch (flags.getInt("clockSel",0)) {
|
switch (flags.getInt("clockSel",0)) {
|
||||||
case 0: // 16MHz (earlier hardwares)
|
|
||||||
chipClock=16000000;
|
|
||||||
break;
|
|
||||||
case 1: // 16.67MHz (later hardwares)
|
case 1: // 16.67MHz (later hardwares)
|
||||||
chipClock=50000000.0/3.0;
|
chipClock=50000000.0/3.0;
|
||||||
break;
|
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
|
// Other clock is used
|
||||||
default:
|
default: // 16MHz (earlier hardwares)
|
||||||
chipClock=16000000;
|
chipClock=16000000;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -855,6 +855,10 @@ bool FurnaceGUI::drawSysConf(int chan, DivSystem type, DivConfig& flags, bool mo
|
||||||
clockSel=1;
|
clockSel=1;
|
||||||
altered=true;
|
altered=true;
|
||||||
}
|
}
|
||||||
|
if (ImGui::RadioButton("14.32MHz (NTSC)",clockSel==2)) {
|
||||||
|
clockSel=2;
|
||||||
|
altered=true;
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::Checkbox("Stereo",&stereo)) {
|
if (ImGui::Checkbox("Stereo",&stereo)) {
|
||||||
altered=true;
|
altered=true;
|
||||||
|
|
Loading…
Reference in a new issue