From ce9d51007612fe0c836555391e559f7f07a5143d Mon Sep 17 00:00:00 2001 From: AArt1256 Date: Thu, 15 Aug 2024 14:36:58 +0300 Subject: [PATCH] added more presets and fixed memory bug yay --- src/engine/platform/sound/supervision.c | 3 +++ src/engine/platform/sound/upd1771c.c | 3 +++ src/engine/platform/upd1771c.cpp | 2 +- src/gui/presets.cpp | 10 ++++++++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/sound/supervision.c b/src/engine/platform/sound/supervision.c index 6018b218d..c4c8af11c 100644 --- a/src/engine/platform/sound/supervision.c +++ b/src/engine/platform/sound/supervision.c @@ -1,3 +1,6 @@ +// THIS IS A MODIFIED VERSION OF POTATOR'S SOUND EMULATION CORE +// MODIFIED BY AART1256 IN 2024 + #include "supervision.h" #include diff --git a/src/engine/platform/sound/upd1771c.c b/src/engine/platform/sound/upd1771c.c index 1e4787097..cb5bb6369 100644 --- a/src/engine/platform/sound/upd1771c.c +++ b/src/engine/platform/sound/upd1771c.c @@ -1,3 +1,6 @@ +// SOME CODE IS TAKEN FROM MAME'S EMULATION OF THE UPD1771C +// MADE BY AART1256 IN 2024 + #include "upd1771c.h" #include diff --git a/src/engine/platform/upd1771c.cpp b/src/engine/platform/upd1771c.cpp index 69ecc90cf..260fba84c 100644 --- a/src/engine/platform/upd1771c.cpp +++ b/src/engine/platform/upd1771c.cpp @@ -281,7 +281,7 @@ void DivPlatformUPD1771c::muteChannel(int ch, bool mute) { } void DivPlatformUPD1771c::forceIns() { - for (int i=0; i<4; i++) { + for (int i=0; i<1; i++) { chan[i].insChanged=true; chan[i].freqChanged=true; //chwrite(i,0x05,isMuted[i]?0:chan[i].pan); diff --git a/src/gui/presets.cpp b/src/gui/presets.cpp index 4b3416bd0..8b7cd7c8d 100644 --- a/src/gui/presets.cpp +++ b/src/gui/presets.cpp @@ -320,6 +320,11 @@ void FurnaceGUI::initSystemPresets() { CH(DIV_SYSTEM_NDS, 1.0f, 0, "") } ); + ENTRY( + "Watara Supervision", { + CH(DIV_SYSTEM_SUPERVISION, 1.0f, 0, "") + } + ); CATEGORY_END; CATEGORY_BEGIN("Computers","let's get to work on chiptune today."); @@ -1284,6 +1289,11 @@ void FurnaceGUI::initSystemPresets() { ) } ); + ENTRY( + "Epoch Super Cassette Vision", { + CH(DIV_SYSTEM_UPD1771C, 1.0f, 0, "") + } + ); CATEGORY_END; CATEGORY_BEGIN("Arcade systems","INSERT COIN");