| 1 |
#include "clIniFile.h" |
| 2 |
#include "cl_standard_paths.h" |
| 3 |
#include "csConfig.h" |
| 4 |
#include "file_logger.h" |
| 5 |
#include <wx/filename.h> |
| 6 |
|
| 7 |
csConfig::csConfig() |
| 8 |
: m_flags(0) |
| 9 |
{ |
| 10 |
} |
| 11 |
|
| 12 |
csConfig::~csConfig() {} |
| 13 |
|
| 14 |
void csConfig::Load() |
| 15 |
{ |
| 16 |
wxFileName iniPath(clStandardPaths::Get().GetUserDataDir(), "codelite-cli.ini"); |
| 17 |
clIniFile ini(iniPath); |
| 18 |
ini.Read("command", &m_command, ""); |
| 19 |
clDEBUG() << "command =" << m_command; |
| 20 |
ini.Read("options", &m_options, ""); |
| 21 |
clDEBUG() << "options =" << m_options; |
| 22 |
bool pretty_json = false; |
| 23 |
ini.Read("pretty_json", &pretty_json); |
| 24 |
EnableFlag(kPrettyJSON, pretty_json); |
| 25 |
} |