refactor: extract applyAudioVolumes() to deduplicate 30-line audio settings block

Extract identical 30-line audio volume application block into
GameScreen::applyAudioVolumes(), replacing two copies (startup init
and settings dialog lambda) with single-line calls.
This commit is contained in:
Kelsi 2026-03-25 12:52:07 -07:00
parent 40dd39feed
commit f39271453b
2 changed files with 30 additions and 65 deletions

View file

@ -16,6 +16,7 @@
namespace wowee {
namespace pipeline { class AssetManager; }
namespace rendering { class Renderer; }
namespace ui {
/**
@ -40,6 +41,7 @@ public:
void saveSettings();
void loadSettings();
void applyAudioVolumes(rendering::Renderer* renderer);
private:
// Chat state