diff options
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 0605c92e3..e44a98311 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -174,19 +174,6 @@ int main(int argc, char** argv) { | |||
| 174 | case Core::System::ResultStatus::ErrorLoader: | 174 | case Core::System::ResultStatus::ErrorLoader: |
| 175 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); | 175 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); |
| 176 | return -1; | 176 | return -1; |
| 177 | case Core::System::ResultStatus::ErrorLoader_ErrorMissingKeys: | ||
| 178 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and the keys required " | ||
| 179 | "could not be found. Please refer to the yuzu wiki for help"); | ||
| 180 | return -1; | ||
| 181 | case Core::System::ResultStatus::ErrorLoader_ErrorDecrypting: | ||
| 182 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and there was a " | ||
| 183 | "general error while decrypting. This could mean that the keys are " | ||
| 184 | "incorrect, game is invalid or game uses an unsupported method of " | ||
| 185 | "crypto. Please double-check your keys"); | ||
| 186 | return -1; | ||
| 187 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: | ||
| 188 | LOG_CRITICAL(Frontend, "Error while loading ROM: The ROM format is not supported."); | ||
| 189 | return -1; | ||
| 190 | case Core::System::ResultStatus::ErrorNotInitialized: | 177 | case Core::System::ResultStatus::ErrorNotInitialized: |
| 191 | LOG_CRITICAL(Frontend, "CPUCore not initialized"); | 178 | LOG_CRITICAL(Frontend, "CPUCore not initialized"); |
| 192 | return -1; | 179 | return -1; |
| @@ -198,6 +185,17 @@ int main(int argc, char** argv) { | |||
| 198 | return -1; | 185 | return -1; |
| 199 | case Core::System::ResultStatus::Success: | 186 | case Core::System::ResultStatus::Success: |
| 200 | break; // Expected case | 187 | break; // Expected case |
| 188 | default: | ||
| 189 | if (static_cast<u32>(load_result) > | ||
| 190 | static_cast<u32>(Core::System::ResultStatus::ErrorLoader)) { | ||
| 191 | const u16 loader_id = static_cast<u16>(Core::System::ResultStatus::ErrorLoader); | ||
| 192 | const u16 error_id = static_cast<u16>(load_result) - loader_id; | ||
| 193 | LOG_CRITICAL(Frontend, | ||
| 194 | "While attempting to load the ROM requested, an error occured. Please " | ||
| 195 | "refer to the yuzu wiki for more information or the yuzu discord for " | ||
| 196 | "additional help.\n\nError Code: {:04X}-{:04X}\nError Description: {}", | ||
| 197 | loader_id, error_id, Loader::GetMessageForResultStatus(error_id)); | ||
| 198 | } | ||
| 201 | } | 199 | } |
| 202 | 200 | ||
| 203 | Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "SDL"); | 201 | Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "SDL"); |