From a2b7aa18d10149cba8ca2a9661a968bac9ee8766 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 26 Jan 2020 18:42:40 -0500 Subject: [PATCH] - fixed - menudef was not detecting properly the presence of OpenAL --- source/common/menu/menudef.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/common/menu/menudef.cpp b/source/common/menu/menudef.cpp index 5417024a1..1015ed43e 100644 --- a/source/common/menu/menudef.cpp +++ b/source/common/menu/menudef.cpp @@ -67,6 +67,8 @@ void I_BuildMIDIMenuList(FOptionValues* opt); void I_BuildALDeviceList(FOptionValues *opt); void I_BuildALResamplersList(FOptionValues* opt); +bool IsOpenALPresent(); + void M_DeinitMenus() { { @@ -221,6 +223,12 @@ static bool CheckSkipOptionBlock(FScanner &sc) filter = true; #endif } + + if (sc.Compare("openal")) + { + if (IsOpenALPresent()) + filter = true; + } } while (sc.CheckString(",")); sc.MustGetStringName(")");