From a85af6339da196f923eb170edc7b9c61cbc10680 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 3 Apr 2023 21:14:12 +0100 Subject: [PATCH] M_EraseDataResponse: Don't softlock the Stereo on if you're likely no longer able to access it --- src/deh_soc.c | 4 ++++ src/menus/options-data-erase-1.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/deh_soc.c b/src/deh_soc.c index 190001f80..a7962e3af 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -3003,6 +3003,10 @@ void readmaincfg(MYFILE *f, boolean mainfile) G_ClearRecords(); M_ClearStats(); M_ClearSecrets(); + + // Don't softlock the Stereo on if you won't be able to access it anymore!? + if (soundtest.playing && M_SecretUnlocked(SECRET_SOUNDTEST, true) == false) + S_SoundTestStop(); } #ifndef DEVELOP else if (!mainfile && !gamedataadded) diff --git a/src/menus/options-data-erase-1.c b/src/menus/options-data-erase-1.c index 57869c561..2af6f0ffb 100644 --- a/src/menus/options-data-erase-1.c +++ b/src/menus/options-data-erase-1.c @@ -69,6 +69,10 @@ static void M_EraseDataResponse(INT32 ch) M_UpdateUnlockablesAndExtraEmblems(false, true); + // Don't softlock the Stereo on if you won't be able to access it anymore!? + if (soundtest.playing && M_SecretUnlocked(SECRET_SOUNDTEST, true) == false) + S_SoundTestStop(); + F_StartIntro(); M_ClearMenus(true); }