From ae1fa8d3b8425e5ab63d555e1d844e31c3adf36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B4=E3=82=A7=E3=83=AB=E3=83=A1=E3=83=B3=E3=82=B9?= =?UTF-8?q?=E3=82=A3=E3=83=B1?= <108448686+Velmyncier@users.noreply.github.com> Date: Sun, 18 Aug 2024 06:58:25 -0400 Subject: [PATCH] Add TeraDrive presets (#2086) * correct some preset errors * decapitalization * Add TeraDrive presets * Correct Sord M5 clock * Revert "Correct Sord M5 clock" This reverts commit 92d3e4a85efbbe6b61a3c47624cec7eaade8e6fe. * Correct formatting errors * Move PC speaker * I have no idea how I changed libsndfile. --- src/gui/presets.cpp | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/src/gui/presets.cpp b/src/gui/presets.cpp index 87133ffc8..1ecb39204 100644 --- a/src/gui/presets.cpp +++ b/src/gui/presets.cpp @@ -1203,28 +1203,63 @@ void FurnaceGUI::initSystemPresets() { CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") } ); + SUB_ENTRY( + "Sega TeraDrive", { + CH(DIV_SYSTEM_YM2612, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, ""), + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (extended channel 3)", { + CH(DIV_SYSTEM_YM2612_EXT, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, ""), + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (CSM)", { + CH(DIV_SYSTEM_YM2612_CSM, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, ""), + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (DualPCM)", { + CH(DIV_SYSTEM_YM2612_DUALPCM, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, ""), + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (DualPCM, extended channel 3)", { + CH(DIV_SYSTEM_YM2612_DUALPCM_EXT, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, ""), + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") + } + ); ENTRY( "Sharp X1", { CH(DIV_SYSTEM_AY8910, 1.0f, 0, "clockSel=3") - } + } ); SUB_ENTRY( "Sharp X1 + FM Addon", { CH(DIV_SYSTEM_AY8910, 1.0f, 0, "clockSel=3"), CH(DIV_SYSTEM_YM2151, 1.0f, 0, "clockSel=2") - } + } ); ENTRY( "Sharp X68000", { CH(DIV_SYSTEM_YM2151, 1.0f, 0, "clockSel=2"), CH(DIV_SYSTEM_MSM6258, 1.0f, 0, "clockSel=2") - } + } ); ENTRY( "FM-7", { CH(DIV_SYSTEM_AY8910, 1.0f, 0, "clockSel=12"), CH(DIV_SYSTEM_YM2203, 1.0f, 0, "clockSel=5") - } + } ); SUB_ENTRY( "FM-7 (extended channel 3)", {