GUI: hide some chips
- YMU759: impossible to implement properly - Dummy: doesn't make sense - μPD: incomplete and uncertain - SegaPCM 5-channel: Defle compat - Pong: doesn't make sense
This commit is contained in:
parent
f8b3c81d6c
commit
88b274b886
|
@ -70,6 +70,9 @@
|
||||||
|
|
||||||
#define FM_PREVIEW_SIZE 512
|
#define FM_PREVIEW_SIZE 512
|
||||||
|
|
||||||
|
#define CHECK_HIDDEN_SYSTEM(x) \
|
||||||
|
(x==DIV_SYSTEM_YMU759 || x==DIV_SYSTEM_UPD1771C || x==DIV_SYSTEM_DUMMY || x==DIV_SYSTEM_SEGAPCM_COMPAT || x==DIV_SYSTEM_PONG)
|
||||||
|
|
||||||
enum FurnaceGUIRenderBackend {
|
enum FurnaceGUIRenderBackend {
|
||||||
GUI_BACKEND_SDL=0,
|
GUI_BACKEND_SDL=0,
|
||||||
GUI_BACKEND_GL3,
|
GUI_BACKEND_GL3,
|
||||||
|
|
|
@ -1336,11 +1336,6 @@ void FurnaceGUI::initSystemPresets() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
ENTRY(
|
|
||||||
"Epoch Super Cassette Vision", {
|
|
||||||
CH(DIV_SYSTEM_UPD1771C, 1.0f, 0, "")
|
|
||||||
}
|
|
||||||
);
|
|
||||||
CATEGORY_END;
|
CATEGORY_END;
|
||||||
|
|
||||||
CATEGORY_BEGIN(_("Arcade systems"),_("INSERT COIN"));
|
CATEGORY_BEGIN(_("Arcade systems"),_("INSERT COIN"));
|
||||||
|
@ -1406,11 +1401,6 @@ void FurnaceGUI::initSystemPresets() {
|
||||||
ENTRY(
|
ENTRY(
|
||||||
_("Atari"), {}
|
_("Atari"), {}
|
||||||
);
|
);
|
||||||
SUB_ENTRY(
|
|
||||||
_("Pong"), {
|
|
||||||
CH(DIV_SYSTEM_PONG, 1.0f, 0, "")
|
|
||||||
}
|
|
||||||
);
|
|
||||||
SUB_ENTRY(
|
SUB_ENTRY(
|
||||||
_("Atari Klax"), {
|
_("Atari Klax"), {
|
||||||
CH(DIV_SYSTEM_MSM6295, 1.0f, 0, "clockSel=7") // 0.895MHz (3.579545MHz / 4)
|
CH(DIV_SYSTEM_MSM6295, 1.0f, 0, "clockSel=7") // 0.895MHz (3.579545MHz / 4)
|
||||||
|
@ -2775,13 +2765,6 @@ void FurnaceGUI::initSystemPresets() {
|
||||||
CH(DIV_SYSTEM_OPL4_DRUMS, 1.0f, 0, "")
|
CH(DIV_SYSTEM_OPL4_DRUMS, 1.0f, 0, "")
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (settings.hiddenSystems) {
|
|
||||||
ENTRY(
|
|
||||||
_("Yamaha YMU759 (MA-2)"), {
|
|
||||||
CH(DIV_SYSTEM_YMU759, 1.0f, 0, "")
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
CATEGORY_END;
|
CATEGORY_END;
|
||||||
|
|
||||||
CATEGORY_BEGIN(_("Square"),_("these chips generate square/pulse tones only (but may include noise)."));
|
CATEGORY_BEGIN(_("Square"),_("these chips generate square/pulse tones only (but may include noise)."));
|
||||||
|
@ -2882,11 +2865,6 @@ void FurnaceGUI::initSystemPresets() {
|
||||||
CH(DIV_SYSTEM_MSM5232, 1.0f, 0, "")
|
CH(DIV_SYSTEM_MSM5232, 1.0f, 0, "")
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
ENTRY(
|
|
||||||
_("Pong"), {
|
|
||||||
CH(DIV_SYSTEM_PONG, 1.0f, 0, "")
|
|
||||||
}
|
|
||||||
);
|
|
||||||
ENTRY(
|
ENTRY(
|
||||||
_("NEC D65010G031"), {
|
_("NEC D65010G031"), {
|
||||||
CH(DIV_SYSTEM_PV1000, 1.0f, 0, "")
|
CH(DIV_SYSTEM_PV1000, 1.0f, 0, "")
|
||||||
|
@ -3196,11 +3174,6 @@ void FurnaceGUI::initSystemPresets() {
|
||||||
CH(DIV_SYSTEM_SUPERVISION, 1.0f, 0, "")
|
CH(DIV_SYSTEM_SUPERVISION, 1.0f, 0, "")
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
ENTRY(
|
|
||||||
_("NEC μPD1771C"), {
|
|
||||||
CH(DIV_SYSTEM_UPD1771C, 1.0f, 0, "")
|
|
||||||
}
|
|
||||||
);
|
|
||||||
CATEGORY_END;
|
CATEGORY_END;
|
||||||
|
|
||||||
CATEGORY_BEGIN(_("DefleMask-compatible"),_("these configurations are compatible with DefleMask.\nselect this if you need to save as .dmf or work with that program."));
|
CATEGORY_BEGIN(_("DefleMask-compatible"),_("these configurations are compatible with DefleMask.\nselect this if you need to save as .dmf or work with that program."));
|
||||||
|
|
|
@ -1008,7 +1008,11 @@ void FurnaceGUI::drawSettings() {
|
||||||
for (totalAvailSys=0; availableSystems[totalAvailSys]; totalAvailSys++);
|
for (totalAvailSys=0; availableSystems[totalAvailSys]; totalAvailSys++);
|
||||||
if (totalAvailSys>0) {
|
if (totalAvailSys>0) {
|
||||||
for (int i=0; i<howMany; i++) {
|
for (int i=0; i<howMany; i++) {
|
||||||
settings.initialSys.set(fmt::sprintf("id%d",i),e->systemToFileFur((DivSystem)availableSystems[rand()%totalAvailSys]));
|
DivSystem theSystem=DIV_SYSTEM_DUMMY;
|
||||||
|
do {
|
||||||
|
theSystem=(DivSystem)availableSystems[rand()%totalAvailSys];
|
||||||
|
} while (!settings.hiddenSystems && CHECK_HIDDEN_SYSTEM(theSystem));
|
||||||
|
settings.initialSys.set(fmt::sprintf("id%d",i),e->systemToFileFur(theSystem));
|
||||||
settings.initialSys.set(fmt::sprintf("vol%d",i),1.0f);
|
settings.initialSys.set(fmt::sprintf("vol%d",i),1.0f);
|
||||||
settings.initialSys.set(fmt::sprintf("pan%d",i),0.0f);
|
settings.initialSys.set(fmt::sprintf("pan%d",i),0.0f);
|
||||||
settings.initialSys.set(fmt::sprintf("fr%d",i),0.0f);
|
settings.initialSys.set(fmt::sprintf("fr%d",i),0.0f);
|
||||||
|
|
|
@ -65,6 +65,7 @@ DivSystem FurnaceGUI::systemPicker(bool fullWidth) {
|
||||||
if (sysSearchQuery.empty()) {
|
if (sysSearchQuery.empty()) {
|
||||||
// display chip list
|
// display chip list
|
||||||
for (int j=0; curSysSection[j]; j++) {
|
for (int j=0; curSysSection[j]; j++) {
|
||||||
|
if (!settings.hiddenSystems && CHECK_HIDDEN_SYSTEM(curSysSection[j])) continue;
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (ImGui::Selectable(e->getSystemName((DivSystem)curSysSection[j]),false,0,ImVec2(500.0f*dpiScale,0.0f))) ret=(DivSystem)curSysSection[j];
|
if (ImGui::Selectable(e->getSystemName((DivSystem)curSysSection[j]),false,0,ImVec2(500.0f*dpiScale,0.0f))) ret=(DivSystem)curSysSection[j];
|
||||||
|
@ -75,6 +76,7 @@ DivSystem FurnaceGUI::systemPicker(bool fullWidth) {
|
||||||
} else {
|
} else {
|
||||||
// display search results
|
// display search results
|
||||||
for (DivSystem i: sysSearchResults) {
|
for (DivSystem i: sysSearchResults) {
|
||||||
|
if (!settings.hiddenSystems && CHECK_HIDDEN_SYSTEM(i)) continue;
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (ImGui::Selectable(e->getSystemName(i),false,0,ImVec2(500.0f*dpiScale,0.0f))) ret=i;
|
if (ImGui::Selectable(e->getSystemName(i),false,0,ImVec2(500.0f*dpiScale,0.0f))) ret=i;
|
||||||
|
|
Loading…
Reference in a new issue