From 5dacf631e143ddea1344b50eda72c246f644d383 Mon Sep 17 00:00:00 2001 From: Lunathir <18320914+lunathir@users.noreply.github.com> Date: Sun, 29 May 2022 15:24:06 -0700 Subject: [PATCH] Small Fractal fixes: add YM2612 settings to chip config and fixed YM2612 Fractal presets --- src/gui/presets.cpp | 4 ++-- src/gui/sysConf.cpp | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/presets.cpp b/src/gui/presets.cpp index 8a459da06..8239b97aa 100644 --- a/src/gui/presets.cpp +++ b/src/gui/presets.cpp @@ -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 } )); diff --git a/src/gui/sysConf.cpp b/src/gui/sysConf.cpp index 8b8c3c3a8..91d542bd7 100644 --- a/src/gui/sysConf.cpp +++ b/src/gui/sysConf.cpp @@ -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; }