From b2d6f8e7eeb26130a464493a3b7e2dce4143c2ed Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 14 Sep 2024 04:35:02 -0500 Subject: [PATCH] update c64.cpp --- src/engine/platform/c64.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/engine/platform/c64.cpp b/src/engine/platform/c64.cpp index 3860d8e99..6c86f348d 100644 --- a/src/engine/platform/c64.cpp +++ b/src/engine/platform/c64.cpp @@ -626,22 +626,16 @@ DivMacroInt* DivPlatformC64::getChanMacroInt(int ch) { void DivPlatformC64::getPaired(int ch, std::vector& ret) { if (chan[ch].ring) { - if(ch == 0) - { + if (ch==0){ ret.push_back(DivChannelPair(_("ring"),2)); - } - else - { + } else { ret.push_back(DivChannelPair(_("ring"),(ch-1)%3)); } } if (chan[ch].sync) { - if(ch == 0) - { + if (ch==0) { ret.push_back(DivChannelPair(_("sync"),2)); - } - else - { + } else { ret.push_back(DivChannelPair(_("sync"),(ch-1)%3)); } } @@ -700,10 +694,10 @@ void DivPlatformC64::reset() { chan[i].std.setEngine(parent); fakeLow[i]=0; fakeBand[i]=0; - chan[i].pw_slide = 0; + chan[i].pw_slide=0; } - cutoff_slide = 0; + cutoff_slide=0; if (sidCore==2) { dSID_init(sid_d,chipClock,rate,sidIs6581?6581:8580,needInitTables);