summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Colin Kinloch2022-12-29 14:25:22 +0000
committerGravatar Colin Kinloch2022-12-29 15:55:24 +0000
commit8594f287b83006a0aa11dfadbf174e5320873ab3 (patch)
tree1a50c92d8bdca6eb7a102bb387a42202fa40ba0e
parentsettings: warn on invalid regon/language combinations (diff)
downloadyuzu-8594f287b83006a0aa11dfadbf174e5320873ab3.tar.gz
yuzu-8594f287b83006a0aa11dfadbf174e5320873ab3.tar.xz
yuzu-8594f287b83006a0aa11dfadbf174e5320873ab3.zip
settings: added regon/language warning bounds check
Diffstat (limited to '')
-rw-r--r--src/yuzu/configuration/configure_system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp
index 37a98bea1..13bbc4ad9 100644
--- a/src/yuzu/configuration/configure_system.cpp
+++ b/src/yuzu/configuration/configure_system.cpp
@@ -25,7 +25,7 @@ constexpr std::array<u32, 7> LOCALE_BLOCKLIST{
25}; 25};
26 26
27static bool IsValidLocale(u32 region_index, u32 language_index) { 27static bool IsValidLocale(u32 region_index, u32 language_index) {
28 return ((LOCALE_BLOCKLIST[region_index] >> language_index) & 1) == 0; 28 return ((LOCALE_BLOCKLIST.at(region_index) >> language_index) & 1) == 0;
29} 29}
30 30
31ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) 31ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent)