summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorDan <dan@wadoku.de>2020-03-18 10:04:08 +0100
committerDan <dan@wadoku.de>2020-03-19 10:37:42 +0100
commit06dea163fa753a031d1ef4f805b5ae5ccdf5083a (patch)
tree5681d403b0580ad7ab16b604f4b8a540f2a50d86 /src/core/hle
parentMerge pull request #3527 from FearlessTobi/output-mode (diff)
downloadyuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.tar
yuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.tar.gz
yuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.tar.bz2
yuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.tar.lz
yuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.tar.xz
yuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.tar.zst
yuzu-06dea163fa753a031d1ef4f805b5ae5ccdf5083a.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/set/set.cpp10
-rw-r--r--src/core/hle/service/set/set.h1
2 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index 5bcc0b588..9e12c76fc 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -111,6 +111,14 @@ void SET::GetLanguageCode(Kernel::HLERequestContext& ctx) {
rb.PushEnum(available_language_codes[Settings::values.language_index]);
}
+void SET::GetRegionCode(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_SET, "called");
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(Settings::values.region_index);
+}
+
SET::SET() : ServiceFramework("set") {
// clang-format off
static const FunctionInfo functions[] = {
@@ -118,7 +126,7 @@ SET::SET() : ServiceFramework("set") {
{1, &SET::GetAvailableLanguageCodes, "GetAvailableLanguageCodes"},
{2, &SET::MakeLanguageCode, "MakeLanguageCode"},
{3, &SET::GetAvailableLanguageCodeCount, "GetAvailableLanguageCodeCount"},
- {4, nullptr, "GetRegionCode"},
+ {4, &SET::GetRegionCode, "GetRegionCode"},
{5, &SET::GetAvailableLanguageCodes2, "GetAvailableLanguageCodes2"},
{6, &SET::GetAvailableLanguageCodeCount2, "GetAvailableLanguageCodeCount2"},
{7, nullptr, "GetKeyCodeMap"},
diff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.h
index b154e08aa..6084b345d 100644
--- a/src/core/hle/service/set/set.h
+++ b/src/core/hle/service/set/set.h
@@ -43,6 +43,7 @@ private:
void GetAvailableLanguageCodeCount(Kernel::HLERequestContext& ctx);
void GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx);
void GetQuestFlag(Kernel::HLERequestContext& ctx);
+ void GetRegionCode(Kernel::HLERequestContext& ctx);
};
} // namespace Service::Set