diff options
| author | 2022-12-29 14:25:22 +0000 | |
|---|---|---|
| committer | 2022-12-29 15:55:24 +0000 | |
| commit | 8594f287b83006a0aa11dfadbf174e5320873ab3 (patch) | |
| tree | 1a50c92d8bdca6eb7a102bb387a42202fa40ba0e | |
| parent | settings: warn on invalid regon/language combinations (diff) | |
| download | yuzu-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.cpp | 2 |
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 | ||
| 27 | static bool IsValidLocale(u32 region_index, u32 language_index) { | 27 | static 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 | ||
| 31 | ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) | 31 | ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) |