From 1d62b06017c0486864b93d58157b86022d6aec91 Mon Sep 17 00:00:00 2001 From: RNMB15 <56356083+RNMB15@users.noreply.github.com> Date: Wed, 25 Sep 2024 00:12:50 +0200 Subject: [PATCH] Update sblaster.cpp --- src/hardware/sblaster.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/sblaster.cpp b/src/hardware/sblaster.cpp index 5cf67818e8..5776b57cf0 100644 --- a/src/hardware/sblaster.cpp +++ b/src/hardware/sblaster.cpp @@ -3988,6 +3988,10 @@ bool is_cms_enabled() case OPL_esfm: OPL_Init(section,oplmode); break; + sb.cms = is_cms_enabled(); + if (cms) { + CMS_Init(section); + } case OPL_hardwareCMS: assert(!IS_PC98_ARCH); #if HAS_HARDOPL @@ -4002,10 +4006,6 @@ bool is_cms_enabled() #else LOG_MSG("OPL pass-through is disabled. It may not be supported on this operating system."); #endif - sb.cms = is_cms_enabled(); - if (cms) { - CMS_Init(section); - } break; } if (sb.type==SBT_NONE || sb.type==SBT_GB) return;