20 lines
548 B
C++
20 lines
548 B
C++
#pragma once
|
|
#include <AudioSettings.hpp>
|
|
#include <CPUSettings.hpp>
|
|
#include <NativeWindow.hpp>
|
|
#include <memory>
|
|
|
|
class SettingsWindow final {
|
|
AudioSettings audioSettings;
|
|
std::string savesPath;
|
|
bool applyEnabled = false;
|
|
gui::NativeWindow& window;
|
|
public:
|
|
CPUSettings cpuSettings;
|
|
bool isOpen = false;
|
|
bool render();
|
|
SettingsWindow(gui::NativeWindow& window);
|
|
[[nodiscard]] float getVolumeL() const { return audioSettings.volumeL / 100.f; }
|
|
[[nodiscard]] float getVolumeR() const { return audioSettings.volumeR / 100.f; }
|
|
};
|