21 lines
539 B
C++
21 lines
539 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct Config {
|
|
std::string logcat_command;
|
|
float normal_font_size = 13.0f;
|
|
float monospace_font_size = 13.0f;
|
|
};
|
|
|
|
std::string get_config_folder();
|
|
void create_config_folders_if_necessary();
|
|
Config load_config();
|
|
void write_config(const Config& config);
|
|
|
|
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;
|
|
}
|