diff options
| author | 2018-08-04 14:33:11 -0400 | |
|---|---|---|
| committer | 2018-08-04 14:33:11 -0400 | |
| commit | 2b06301dbfbfe79687219bf7783a6d1b47695401 (patch) | |
| tree | 222cc27ecbc7f7e86d2edef8d36436600dee7d7a /src/yuzu_cmd/yuzu.cpp | |
| parent | Merge pull request #919 from lioncash/sign (diff) | |
| parent | Add missing parameter to files.push_back() (diff) | |
| download | yuzu-2b06301dbfbfe79687219bf7783a6d1b47695401.tar.gz yuzu-2b06301dbfbfe79687219bf7783a6d1b47695401.tar.xz yuzu-2b06301dbfbfe79687219bf7783a6d1b47695401.zip | |
Merge pull request #849 from DarkLordZach/xci
XCI and Encrypted NCA Support
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 5ff6266bf..b23213cf6 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include "yuzu_cmd/emu_window/emu_window_sdl2.h" | 23 | #include "yuzu_cmd/emu_window/emu_window_sdl2.h" |
| 24 | 24 | ||
| 25 | #include <getopt.h> | 25 | #include <getopt.h> |
| 26 | #include "core/crypto/key_manager.h" | ||
| 26 | #ifndef _MSC_VER | 27 | #ifndef _MSC_VER |
| 27 | #include <unistd.h> | 28 | #include <unistd.h> |
| 28 | #endif | 29 | #endif |
| @@ -71,6 +72,7 @@ static void InitializeLogging() { | |||
| 71 | /// Application entry point | 72 | /// Application entry point |
| 72 | int main(int argc, char** argv) { | 73 | int main(int argc, char** argv) { |
| 73 | Config config; | 74 | Config config; |
| 75 | |||
| 74 | int option_index = 0; | 76 | int option_index = 0; |
| 75 | bool use_gdbstub = Settings::values.use_gdbstub; | 77 | bool use_gdbstub = Settings::values.use_gdbstub; |
| 76 | u32 gdb_port = static_cast<u32>(Settings::values.gdbstub_port); | 78 | u32 gdb_port = static_cast<u32>(Settings::values.gdbstub_port); |
| @@ -171,11 +173,15 @@ int main(int argc, char** argv) { | |||
| 171 | case Core::System::ResultStatus::ErrorLoader: | 173 | case Core::System::ResultStatus::ErrorLoader: |
| 172 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); | 174 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); |
| 173 | return -1; | 175 | return -1; |
| 174 | case Core::System::ResultStatus::ErrorLoader_ErrorEncrypted: | 176 | case Core::System::ResultStatus::ErrorLoader_ErrorMissingKeys: |
| 175 | LOG_CRITICAL(Frontend, "The game that you are trying to load must be decrypted before " | 177 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and the keys required " |
| 176 | "being used with yuzu. \n\n For more information on dumping and " | 178 | "could not be found. Please refer to the yuzu wiki for help"); |
| 177 | "decrypting games, please refer to: " | 179 | return -1; |
| 178 | "https://yuzu-emu.org/wiki/dumping-game-cartridges/"); | 180 | case Core::System::ResultStatus::ErrorLoader_ErrorDecrypting: |
| 181 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and there was a " | ||
| 182 | "general error while decrypting. This could mean that the keys are " | ||
| 183 | "incorrect, game is invalid or game uses an unsupported method of " | ||
| 184 | "crypto. Please double-check your keys"); | ||
| 179 | return -1; | 185 | return -1; |
| 180 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: | 186 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: |
| 181 | LOG_CRITICAL(Frontend, "Error while loading ROM: The ROM format is not supported."); | 187 | LOG_CRITICAL(Frontend, "Error while loading ROM: The ROM format is not supported."); |