diff options
| author | 2018-07-03 00:26:45 -0400 | |
|---|---|---|
| committer | 2018-07-03 00:26:45 -0400 | |
| commit | 15e68cdbaac38bbf13cd4eb0d70d1e34b2fd4256 (patch) | |
| tree | 9d072a572c0037a44e1e35aeffc242d3772a383c /src/yuzu_cmd/config.cpp | |
| parent | Merge pull request #612 from bunnei/fix-cull (diff) | |
| parent | Fix build and address review feedback (diff) | |
| download | yuzu-15e68cdbaac38bbf13cd4eb0d70d1e34b2fd4256.tar.gz yuzu-15e68cdbaac38bbf13cd4eb0d70d1e34b2fd4256.tar.xz yuzu-15e68cdbaac38bbf13cd4eb0d70d1e34b2fd4256.zip | |
Merge pull request #607 from jroweboy/logging
Logging - Customizable backends
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 150915c17..3a311b69f 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -27,17 +27,17 @@ bool Config::LoadINI(const std::string& default_contents, bool retry) { | |||
| 27 | const char* location = this->sdl2_config_loc.c_str(); | 27 | const char* location = this->sdl2_config_loc.c_str(); |
| 28 | if (sdl2_config->ParseError() < 0) { | 28 | if (sdl2_config->ParseError() < 0) { |
| 29 | if (retry) { | 29 | if (retry) { |
| 30 | NGLOG_WARNING(Config, "Failed to load {}. Creating file from defaults...", location); | 30 | LOG_WARNING(Config, "Failed to load {}. Creating file from defaults...", location); |
| 31 | FileUtil::CreateFullPath(location); | 31 | FileUtil::CreateFullPath(location); |
| 32 | FileUtil::WriteStringToFile(true, default_contents, location); | 32 | FileUtil::WriteStringToFile(true, default_contents, location); |
| 33 | sdl2_config = std::make_unique<INIReader>(location); // Reopen file | 33 | sdl2_config = std::make_unique<INIReader>(location); // Reopen file |
| 34 | 34 | ||
| 35 | return LoadINI(default_contents, false); | 35 | return LoadINI(default_contents, false); |
| 36 | } | 36 | } |
| 37 | NGLOG_ERROR(Config, "Failed."); | 37 | LOG_ERROR(Config, "Failed."); |
| 38 | return false; | 38 | return false; |
| 39 | } | 39 | } |
| 40 | NGLOG_INFO(Config, "Successfully loaded {}", location); | 40 | LOG_INFO(Config, "Successfully loaded {}", location); |
| 41 | return true; | 41 | return true; |
| 42 | } | 42 | } |
| 43 | 43 | ||