aboutsummaryrefslogtreecommitdiff
path: root/include/Config.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-27 13:09:06 +0100
committerdec05eba <dec05eba@protonmail.com>2024-10-27 13:09:06 +0100
commit59dfd87c21026ef4dc713c3e0648cfa89d534557 (patch)
tree6f2f5242eb9efdcb18f0150c59cb43bd1a348773 /include/Config.hpp
parent28c437e90a3ad4660f44da8b8bf07008032d2bba (diff)
Add hotkeys for replay and streaming, finish everything
Diffstat (limited to 'include/Config.hpp')
-rw-r--r--include/Config.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Config.hpp b/include/Config.hpp
index 5839297..1bb4e27 100644
--- a/include/Config.hpp
+++ b/include/Config.hpp
@@ -7,6 +7,8 @@
#include <optional>
namespace gsr {
+ struct GsrInfo;
+
struct ConfigHotkey {
int64_t keysym = 0;
uint32_t modifiers = 0;
@@ -86,7 +88,7 @@ namespace gsr {
};
struct Config {
- Config();
+ Config(const GsrInfo &gsr_info);
MainConfig main_config;
StreamingConfig streaming_config;
@@ -94,6 +96,6 @@ namespace gsr {
ReplayConfig replay_config;
};
- std::optional<Config> read_config();
+ std::optional<Config> read_config(const GsrInfo &gsr_info);
void save_config(Config &config);
} \ No newline at end of file