diff options
| author | 2018-04-26 19:12:13 -0400 | |
|---|---|---|
| committer | 2018-04-26 19:14:48 -0400 | |
| commit | 3062eb52f4b43c4ee861bd944291f1f9aba198df (patch) | |
| tree | e21fe52553e8bf09c53631d7694288aaed1ff22c /src/yuzu_cmd/yuzu.cpp | |
| parent | Merge pull request #402 from lioncash/core (diff) | |
| download | yuzu-3062eb52f4b43c4ee861bd944291f1f9aba198df.tar.gz yuzu-3062eb52f4b43c4ee861bd944291f1f9aba198df.tar.xz yuzu-3062eb52f4b43c4ee861bd944291f1f9aba198df.zip | |
frontends: Move logging macros over to new fmt-capable ones
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 39603e881..f99413966 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -71,7 +71,7 @@ int main(int argc, char** argv) { | |||
| 71 | auto argv_w = CommandLineToArgvW(GetCommandLineW(), &argc_w); | 71 | auto argv_w = CommandLineToArgvW(GetCommandLineW(), &argc_w); |
| 72 | 72 | ||
| 73 | if (argv_w == nullptr) { | 73 | if (argv_w == nullptr) { |
| 74 | LOG_CRITICAL(Frontend, "Failed to get command line arguments"); | 74 | NGLOG_CRITICAL(Frontend, "Failed to get command line arguments"); |
| 75 | return -1; | 75 | return -1; |
| 76 | } | 76 | } |
| 77 | #endif | 77 | #endif |
| @@ -134,7 +134,7 @@ int main(int argc, char** argv) { | |||
| 134 | SCOPE_EXIT({ MicroProfileShutdown(); }); | 134 | SCOPE_EXIT({ MicroProfileShutdown(); }); |
| 135 | 135 | ||
| 136 | if (filepath.empty()) { | 136 | if (filepath.empty()) { |
| 137 | LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); | 137 | NGLOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); |
| 138 | return -1; | 138 | return -1; |
| 139 | } | 139 | } |
| 140 | 140 | ||
| @@ -155,28 +155,28 @@ int main(int argc, char** argv) { | |||
| 155 | 155 | ||
| 156 | switch (load_result) { | 156 | switch (load_result) { |
| 157 | case Core::System::ResultStatus::ErrorGetLoader: | 157 | case Core::System::ResultStatus::ErrorGetLoader: |
| 158 | LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", filepath.c_str()); | 158 | NGLOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", filepath.c_str()); |
| 159 | return -1; | 159 | return -1; |
| 160 | case Core::System::ResultStatus::ErrorLoader: | 160 | case Core::System::ResultStatus::ErrorLoader: |
| 161 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); | 161 | NGLOG_CRITICAL(Frontend, "Failed to load ROM!"); |
| 162 | return -1; | 162 | return -1; |
| 163 | case Core::System::ResultStatus::ErrorLoader_ErrorEncrypted: | 163 | case Core::System::ResultStatus::ErrorLoader_ErrorEncrypted: |
| 164 | LOG_CRITICAL(Frontend, "The game that you are trying to load must be decrypted before " | 164 | NGLOG_CRITICAL(Frontend, "The game that you are trying to load must be decrypted before " |
| 165 | "being used with yuzu. \n\n For more information on dumping and " | 165 | "being used with yuzu. \n\n For more information on dumping and " |
| 166 | "decrypting games, please refer to: " | 166 | "decrypting games, please refer to: " |
| 167 | "https://yuzu-emu.org/wiki/dumping-game-cartridges/"); | 167 | "https://yuzu-emu.org/wiki/dumping-game-cartridges/"); |
| 168 | return -1; | 168 | return -1; |
| 169 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: | 169 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: |
| 170 | LOG_CRITICAL(Frontend, "Error while loading ROM: The ROM format is not supported."); | 170 | NGLOG_CRITICAL(Frontend, "Error while loading ROM: The ROM format is not supported."); |
| 171 | return -1; | 171 | return -1; |
| 172 | case Core::System::ResultStatus::ErrorNotInitialized: | 172 | case Core::System::ResultStatus::ErrorNotInitialized: |
| 173 | LOG_CRITICAL(Frontend, "CPUCore not initialized"); | 173 | NGLOG_CRITICAL(Frontend, "CPUCore not initialized"); |
| 174 | return -1; | 174 | return -1; |
| 175 | case Core::System::ResultStatus::ErrorSystemMode: | 175 | case Core::System::ResultStatus::ErrorSystemMode: |
| 176 | LOG_CRITICAL(Frontend, "Failed to determine system mode!"); | 176 | NGLOG_CRITICAL(Frontend, "Failed to determine system mode!"); |
| 177 | return -1; | 177 | return -1; |
| 178 | case Core::System::ResultStatus::ErrorVideoCore: | 178 | case Core::System::ResultStatus::ErrorVideoCore: |
| 179 | LOG_CRITICAL(Frontend, "VideoCore not initialized"); | 179 | NGLOG_CRITICAL(Frontend, "VideoCore not initialized"); |
| 180 | return -1; | 180 | return -1; |
| 181 | case Core::System::ResultStatus::Success: | 181 | case Core::System::ResultStatus::Success: |
| 182 | break; // Expected case | 182 | break; // Expected case |