#pragma once #include #include #include #include #include #include #include class SettingsWindow final { gui::PushButton apply{"Apply", "", false}, savesFolder{"Open", "Save path: {}"}; nlohmann::json settings; CPUSettings cpuSettings; AudioSettings audioSettings; public: gui::PopupWindow popup{"Emulator Settings"}; bool render(); SettingsWindow(); [[nodiscard]] float getVolumeL() const { return audioSettings.volumeL.getValue() / 100.f; } [[nodiscard]] float getVolumeR() const { return audioSettings.volumeR.getValue() / 100.f; } gui::TabBar tabs{"SettingsTabs"}; };