diff options
author | lat9nq <lat9nq@virginia.edu> | 2020-07-10 04:42:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 04:42:09 +0200 |
commit | 63d23835ef4445b3a010cc0e8b1e73ebe012ac08 (patch) | |
tree | b243c1167280dbf2e3f5af4597b6638fb707f091 /src/core/hle/service/set | |
parent | Merge pull request #4281 from RealJohnGalt/linkfix2 (diff) | |
download | yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.gz yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.bz2 yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.lz yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.xz yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.tar.zst yuzu-63d23835ef4445b3a010cc0e8b1e73ebe012ac08.zip |
Diffstat (limited to 'src/core/hle/service/set')
-rw-r--r-- | src/core/hle/service/set/set.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index e5cfd2101..34fe2fd82 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp @@ -91,7 +91,7 @@ void GetAvailableLanguageCodesImpl(Kernel::HLERequestContext& ctx, std::size_t m } void GetKeyCodeMapImpl(Kernel::HLERequestContext& ctx) { - const auto language_code = available_language_codes[Settings::values.language_index]; + const auto language_code = available_language_codes[Settings::values.language_index.GetValue()]; const auto key_code = std::find_if(language_to_layout.cbegin(), language_to_layout.cend(), [=](const auto& element) { return element.first == language_code; }); @@ -99,7 +99,7 @@ void GetKeyCodeMapImpl(Kernel::HLERequestContext& ctx) { if (key_code == language_to_layout.cend()) { LOG_ERROR(Service_SET, "Could not find keyboard layout for language index {}, defaulting to English us", - Settings::values.language_index); + Settings::values.language_index.GetValue()); } else { layout = key_code->second; } @@ -163,11 +163,11 @@ void SET::GetQuestFlag(Kernel::HLERequestContext& ctx) { } void SET::GetLanguageCode(Kernel::HLERequestContext& ctx) { - LOG_DEBUG(Service_SET, "called {}", Settings::values.language_index); + LOG_DEBUG(Service_SET, "called {}", Settings::values.language_index.GetValue()); IPC::ResponseBuilder rb{ctx, 4}; rb.Push(RESULT_SUCCESS); - rb.PushEnum(available_language_codes[Settings::values.language_index]); + rb.PushEnum(available_language_codes[Settings::values.language_index.GetValue()]); } void SET::GetRegionCode(Kernel::HLERequestContext& ctx) { @@ -175,7 +175,7 @@ void SET::GetRegionCode(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push(Settings::values.region_index); + rb.Push(Settings::values.region_index.GetValue()); } void SET::GetKeyCodeMap(Kernel::HLERequestContext& ctx) { |