Libretro: Fix changing the enable audio setting at runtime

This commit is contained in:
wheremyfoodat 2024-11-21 22:15:55 +02:00 committed by GitHub
parent b324a5b9e2
commit 1c5c03f8d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,6 +204,8 @@ static void configUpdate() {
config.lightShadergenThreshold = fetchVariableRange("panda3ds_ubershader_lighting_override_threshold", 1, 8); config.lightShadergenThreshold = fetchVariableRange("panda3ds_ubershader_lighting_override_threshold", 1, 8);
config.discordRpcEnabled = false; 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(); config.save();
} }