Small Fractal fixes: add YM2612 settings to chip config and fixed YM2612 Fractal presets

This commit is contained in:
Lunathir 2022-05-29 15:24:06 -07:00
parent 1ed5be887b
commit 5dacf631e1
2 changed files with 5 additions and 3 deletions

View file

@ -104,13 +104,13 @@ void FurnaceGUI::initSystemPresets() {
));
cat.systems.push_back(FurnaceGUISysDef(
"Yamaha YM2612 (OPN2) with DualPCM", {
DIV_SYSTEM_YM2612, 64, 0, (int)0x80000000,
DIV_SYSTEM_YM2612_FRAC, 64, 0, (int)0x80000000,
0
}
));
cat.systems.push_back(FurnaceGUISysDef(
"Yamaha YM2612 (extended channel 3) with DualPCM", {
DIV_SYSTEM_YM2612_EXT, 64, 0, (int)0x80000000,
DIV_SYSTEM_YM2612_FRAC_EXT, 64, 0, (int)0x80000000,
0
}
));

View file

@ -25,7 +25,9 @@ void FurnaceGUI::drawSysConf(int chan, DivSystem type, unsigned int& flags, bool
unsigned int copyOfFlags=flags;
switch (type) {
case DIV_SYSTEM_YM2612:
case DIV_SYSTEM_YM2612_EXT: {
case DIV_SYSTEM_YM2612_EXT:
case DIV_SYSTEM_YM2612_FRAC:
case DIV_SYSTEM_YM2612_FRAC_EXT: {
if (ImGui::RadioButton("NTSC (7.67MHz)",(flags&7)==0)) {
copyOfFlags=(flags&0x80000000)|0;
}