mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
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:
parent
40dd39feed
commit
f39271453b
2 changed files with 30 additions and 65 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue