Files
kaizen/src/frontend/imgui/Settings.hpp
2023-06-28 09:49:58 +02:00

23 lines
491 B
C++

#pragma once
#include <nlohmann/json.hpp>
#include <common.hpp>
namespace n64 { struct Core; }
using namespace nlohmann;
struct Settings {
Settings();
~Settings();
[[nodiscard]] FORCE_INLINE float GetVolumeL() const { return volumeL; };
[[nodiscard]] FORCE_INLINE float GetVolumeR() const { return volumeR; };
void RenderWidget(bool& show);
private:
float volumeL, volumeR;
float oldVolumeL, oldVolumeR;
bool lockChannels = true;
bool mute = false;
json settings;
};