// -*- mode: c++; c-basic-offset: 2; -*- #include "common.hh" #include "gui_config.hh" #include bool GuiConfig::load_name(std::string const&) { return false; } bool GuiConfig::load_file(std::string const&) { return false; } bool GuiConfig::get(std::string const& key, bool fallback) { auto ret = static_cast(this)->get(key, nullptr); if (!ret) return fallback; return strcmp(ret, "true") == 0; } bool GuiConfig::good() const { return true; } std::string const& GuiConfig::last_error() const { return EMPTY; } // static std::string const GuiConfig::EMPTY;