logmeow/config.h

21 lines
539 B
C
Raw Normal View History

#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;
};
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;
}