mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-05 14:30:45 +09:00
Query capture options when opening settings and validate capture options when starting recording
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <optional>
|
||||
|
||||
namespace gsr {
|
||||
struct GsrInfo;
|
||||
struct SupportedCaptureOptions;
|
||||
|
||||
struct ConfigHotkey {
|
||||
int64_t keysym = 0;
|
||||
@@ -92,7 +92,7 @@ namespace gsr {
|
||||
};
|
||||
|
||||
struct Config {
|
||||
Config(const GsrInfo &gsr_info);
|
||||
Config(const SupportedCaptureOptions &capture_options);
|
||||
|
||||
MainConfig main_config;
|
||||
StreamingConfig streaming_config;
|
||||
@@ -100,6 +100,6 @@ namespace gsr {
|
||||
ReplayConfig replay_config;
|
||||
};
|
||||
|
||||
std::optional<Config> read_config(const GsrInfo &gsr_info);
|
||||
std::optional<Config> read_config(const SupportedCaptureOptions &capture_options);
|
||||
void save_config(Config &config);
|
||||
}
|
||||
Reference in New Issue
Block a user