2022-12-31 08:35:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
struct Config {
|
|
|
|
std::string logcat_command;
|
2023-01-08 16:12:22 +00:00
|
|
|
float normal_font_size = 13.0f;
|
|
|
|
float monospace_font_size = 13.0f;
|
2022-12-31 08:35:58 +00:00
|
|
|
};
|
|
|
|
|
2023-01-04 16:40:35 +00:00
|
|
|
std::string get_config_folder();
|
|
|
|
void create_config_folders_if_necessary();
|
|
|
|
Config load_config();
|
|
|
|
void write_config(const Config& config);
|
2023-01-24 05:17:05 +00:00
|
|
|
|
|
|
|
constexpr bool operator!=(const Config& lhs, const Config& rhs) {
|
|
|
|
return lhs.logcat_command != rhs.logcat_command
|
|
|
|
|| lhs.normal_font_size != rhs.normal_font_size
|
|
|
|
|| lhs.monospace_font_size != rhs.monospace_font_size;
|
|
|
|
}
|