From 1c5c03f8d4c245c7b2c5a4670438cc6cebb145f9 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:15:55 +0200 Subject: [PATCH] Libretro: Fix changing the enable audio setting at runtime --- src/libretro_core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libretro_core.cpp b/src/libretro_core.cpp index ce5fddafe..319b0a72e 100644 --- a/src/libretro_core.cpp +++ b/src/libretro_core.cpp @@ -204,6 +204,8 @@ static void configUpdate() { config.lightShadergenThreshold = fetchVariableRange("panda3ds_ubershader_lighting_override_threshold", 1, 8); config.discordRpcEnabled = false; + // Handle any settings that might need the emulator core to be notified when they're changed, and save the config. + emulator->setAudioEnabled(config.audioEnabled); config.save(); }