dev231 - YM2612: actually be YM2612 by default

pull request #2533
This commit is contained in:
tildearrow 2025-06-02 12:59:10 -05:00
parent 967e717396
commit ffbe910c99
6 changed files with 40 additions and 16 deletions

View file

@ -3168,27 +3168,27 @@ void FurnaceGUI::initSystemPresets() {
);
ENTRY(
_("Yamaha YM3438 (OPN2C)"), {
CH(DIV_SYSTEM_YM2612, 1.0f, 0, "")
CH(DIV_SYSTEM_YM2612, 1.0f, 0, "chipType=0")
}
);
SUB_ENTRY(
_("Yamaha YM3438 (extended channel 3)"), {
CH(DIV_SYSTEM_YM2612_EXT, 1.0f, 0, "")
CH(DIV_SYSTEM_YM2612_EXT, 1.0f, 0, "chipType=0")
}
);
SUB_ENTRY(
_("Yamaha YM3438 (OPN2C) CSM"), {
CH(DIV_SYSTEM_YM2612_CSM, 1.0f, 0, "")
CH(DIV_SYSTEM_YM2612_CSM, 1.0f, 0, "chipType=0")
}
);
SUB_ENTRY(
_("Yamaha YM3438 (OPN2C) with DualPCM"), {
CH(DIV_SYSTEM_YM2612_DUALPCM, 1.0f, 0, "")
CH(DIV_SYSTEM_YM2612_DUALPCM, 1.0f, 0, "chipType=0")
}
);
SUB_ENTRY(
_("Yamaha YM3438 (extended channel 3) with DualPCM"), {
CH(DIV_SYSTEM_YM2612_DUALPCM_EXT, 1.0f, 0, "")
CH(DIV_SYSTEM_YM2612_DUALPCM_EXT, 1.0f, 0, "chipType=0")
}
);
ENTRY(

View file

@ -1450,6 +1450,13 @@ void FurnaceGUI::drawSampleEdit() {
}
}
if (mobileUI) {
sameLineMaybe();
if (ImGui::Button(ICON_FA_ELLIPSIS_H "##SMobMenu")) {
ImGui::OpenPopup("SRightClick");
}
}
ImGui::Separator();
// time

View file

@ -36,10 +36,10 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
case DIV_SYSTEM_YM2612_DUALPCM_EXT:
case DIV_SYSTEM_YM2612_CSM: {
int clockSel=flags.getInt("clockSel",0);
int chipType=0;
int chipType=1;
if (flags.has("chipType")) {
chipType=flags.getInt("chipType",0);
} else {
chipType=flags.getInt("chipType",1);
} else if (flags.has("ladderEffect")) {
chipType=flags.getBool("ladderEffect",0)?1:0;
}
int interruptSimCycles=flags.getInt("interruptSimCycles",0);
@ -73,14 +73,14 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
ImGui::Text(_("Chip type:"));
ImGui::Indent();
if (ImGui::RadioButton(_("YM3438 (9-bit DAC)"),chipType==0)) {
chipType=0;
altered=true;
}
if (ImGui::RadioButton(_("YM2612 (9-bit DAC with distortion)"),chipType==1)) {
chipType=1;
altered=true;
}
if (ImGui::RadioButton(_("YM3438 (9-bit DAC)"),chipType==0)) {
chipType=0;
altered=true;
}
if (ImGui::RadioButton(_("YMF276 (external DAC)"),chipType==2)) {
chipType=2;
altered=true;