diff options
| author | 2018-07-30 22:04:51 -0400 | |
|---|---|---|
| committer | 2018-08-01 00:16:54 -0400 | |
| commit | 0497bb5528f62f9e3db887988f0f93b4a1653a42 (patch) | |
| tree | c4f868272fb46e075e2e2c3f50504965dcf68796 | |
| parent | Use more descriptive error codes and messages (diff) | |
| download | yuzu-0497bb5528f62f9e3db887988f0f93b4a1653a42.tar.gz yuzu-0497bb5528f62f9e3db887988f0f93b4a1653a42.tar.xz yuzu-0497bb5528f62f9e3db887988f0f93b4a1653a42.zip | |
Fix merge conflicts with opus and update docs
| -rw-r--r-- | .gitmodules | 10 | ||||
| -rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/core/loader/xci.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 4 |
5 files changed, 13 insertions, 11 deletions
diff --git a/.gitmodules b/.gitmodules index 247aac535..4f4e8690b 100644 --- a/.gitmodules +++ b/.gitmodules | |||
| @@ -25,9 +25,9 @@ | |||
| 25 | [submodule "unicorn"] | 25 | [submodule "unicorn"] |
| 26 | path = externals/unicorn | 26 | path = externals/unicorn |
| 27 | url = https://github.com/yuzu-emu/unicorn | 27 | url = https://github.com/yuzu-emu/unicorn |
| 28 | [submodule "externals/mbedtls"] | 28 | [submodule "mbedtls"] |
| 29 | path = externals/mbedtls | 29 | path = externals/mbedtls |
| 30 | url = https://github.com/DarkLordZach/mbedtls | 30 | url = https://github.com/DarkLordZach/mbedtls |
| 31 | [submodule "opus"] | 31 | [submodule "opus"] |
| 32 | path = externals/opus | 32 | path = externals/opus |
| 33 | url = https://github.com/ogniK5377/opus.git | 33 | url = https://github.com/ogniK5377/opus.git |
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 528d96a58..22fad97a3 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -348,7 +348,7 @@ add_library(core STATIC | |||
| 348 | create_target_directory_groups(core) | 348 | create_target_directory_groups(core) |
| 349 | 349 | ||
| 350 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) | 350 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) |
| 351 | target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt lz4_static opus unicorn) | 351 | target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt lz4_static mbedtls opus unicorn) |
| 352 | 352 | ||
| 353 | if (ARCHITECTURE_x86_64) | 353 | if (ARCHITECTURE_x86_64) |
| 354 | target_sources(core PRIVATE | 354 | target_sources(core PRIVATE |
diff --git a/src/core/loader/xci.cpp b/src/core/loader/xci.cpp index d757862f0..eb4dee2c2 100644 --- a/src/core/loader/xci.cpp +++ b/src/core/loader/xci.cpp | |||
| @@ -49,6 +49,8 @@ ResultStatus AppLoader_XCI::Load(Kernel::SharedPtr<Kernel::Process>& process) { | |||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | if (xci->GetNCAFileByType(FileSys::NCAContentType::Program) == nullptr) { | 51 | if (xci->GetNCAFileByType(FileSys::NCAContentType::Program) == nullptr) { |
| 52 | if (!Core::Crypto::KeyManager::KeyFileExists(false)) | ||
| 53 | return ResultStatus::ErrorMissingKeys; | ||
| 52 | return ResultStatus::ErrorDecrypting; | 54 | return ResultStatus::ErrorDecrypting; |
| 53 | } | 55 | } |
| 54 | 56 | ||
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 5bdf41ea4..34d4f0754 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -456,7 +456,7 @@ bool GMainWindow::LoadROM(const QString& filename) { | |||
| 456 | this, tr("Error while loading ROM!"), | 456 | this, tr("Error while loading ROM!"), |
| 457 | tr(("The game you are trying to load is encrypted and the required keys to load " | 457 | tr(("The game you are trying to load is encrypted and the required keys to load " |
| 458 | "the game could not be found in your configuration. " + | 458 | "the game could not be found in your configuration. " + |
| 459 | file_text + " Please refer to <a href=''>How to Dump Keys</a> for help.") | 459 | file_text + " Please refer to the yuzu wiki for help.") |
| 460 | .c_str())); | 460 | .c_str())); |
| 461 | break; | 461 | break; |
| 462 | } | 462 | } |
| @@ -465,8 +465,8 @@ bool GMainWindow::LoadROM(const QString& filename) { | |||
| 465 | this, tr("Error while loading ROM!"), | 465 | this, tr("Error while loading ROM!"), |
| 466 | tr("There was a general error while decrypting the game. This means that the keys " | 466 | tr("There was a general error while decrypting the game. This means that the keys " |
| 467 | "necessary were found, but were either incorrect, the game itself was not a " | 467 | "necessary were found, but were either incorrect, the game itself was not a " |
| 468 | "valid game or the game uses an unhandled cryptographic scheme. Please refer to " | 468 | "valid game or the game uses an unhandled cryptographic scheme. Please double " |
| 469 | "<a href=''>How to Dump Keys</a> to double check that you have the correct " | 469 | "check that you have the correct " |
| 470 | "keys.")); | 470 | "keys.")); |
| 471 | break; | 471 | break; |
| 472 | } | 472 | } |
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 5970cdb4e..c3b0d9f1f 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -175,13 +175,13 @@ int main(int argc, char** argv) { | |||
| 175 | return -1; | 175 | return -1; |
| 176 | case Core::System::ResultStatus::ErrorLoader_ErrorMissingKeys: | 176 | case Core::System::ResultStatus::ErrorLoader_ErrorMissingKeys: |
| 177 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and the keys required " | 177 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and the keys required " |
| 178 | "could not be found. Please refer to <LINK> for help"); | 178 | "could not be found. Please refer to the yuzu wiki for help"); |
| 179 | return -1; | 179 | return -1; |
| 180 | case Core::System::ResultStatus::ErrorLoader_ErrorDecrypting: | 180 | case Core::System::ResultStatus::ErrorLoader_ErrorDecrypting: |
| 181 | LOG_CRITICAL(Frontend, "The game you are trying to load is encrypted and there was a " | 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 " | 182 | "general error while decrypting. This could mean that the keys are " |
| 183 | "incorrect, game is invalid or game uses an unsupported method of " | 183 | "incorrect, game is invalid or game uses an unsupported method of " |
| 184 | "crypto. Please refer to <LINK> to double-check your keys"); | 184 | "crypto. Please double-check your keys"); |
| 185 | return -1; | 185 | return -1; |
| 186 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: | 186 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: |
| 187 | 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."); |