diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-10 23:57:25 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:07 +0200 |
commit | 8e151460265f04c7bf4a981b5f97f252a0444c27 (patch) | |
tree | dc02219effed841c9a2c20b013db9390ed3981c6 /src/core/file_sys | |
parent | per_game: Remove general tab (diff) | |
download | yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.tar yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.tar.gz yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.tar.bz2 yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.tar.lz yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.tar.xz yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.tar.zst yuzu-8e151460265f04c7bf4a981b5f97f252a0444c27.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/control_metadata.cpp | 3 | ||||
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index cd9ac2e75..0697c29ae 100644 --- a/src/core/file_sys/control_metadata.cpp +++ b/src/core/file_sys/control_metadata.cpp @@ -68,7 +68,8 @@ NACP::NACP(VirtualFile file) { NACP::~NACP() = default; const LanguageEntry& NACP::GetLanguageEntry() const { - Language language = language_to_codes[Settings::values.language_index.GetValue()]; + Language language = + language_to_codes[static_cast<s32>(Settings::values.language_index.GetValue())]; { const auto& language_entry = raw.language_entries.at(static_cast<u8>(language)); diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index d3286b352..2ba1b34a4 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -626,8 +626,8 @@ PatchManager::Metadata PatchManager::ParseControlNCA(const NCA& nca) const { auto nacp = nacp_file == nullptr ? nullptr : std::make_unique<NACP>(nacp_file); // Get language code from settings - const auto language_code = - Service::Set::GetLanguageCodeFromIndex(Settings::values.language_index.GetValue()); + const auto language_code = Service::Set::GetLanguageCodeFromIndex( + static_cast<u32>(Settings::values.language_index.GetValue())); // Convert to application language and get priority list const auto application_language = |