feat(config): persistència de les opcions d'àudio al config.yaml

This commit is contained in:
2026-05-24 18:40:33 +02:00
parent bacfbe6eac
commit 8c48a9a772
4 changed files with 68 additions and 7 deletions
+10
View File
@@ -56,9 +56,19 @@ namespace Config {
std::string gamepad_name; // Empty = auto-assign by index
};
struct AudioConfig {
bool enabled{true};
float volume{1.0F}; // Master 0..1
bool music_enabled{true};
float music_volume{1.0F};
bool sound_enabled{true};
float sound_volume{0.25F};
};
struct EngineConfig {
WindowConfig window{};
RenderingConfig rendering{};
AudioConfig audio{};
PlayerBindings player1{};
PlayerBindings player2{};
KeyboardBindings keyboard_controls{}; // Defaults globals per Input