summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set/set.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-29 00:38:47 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-29 00:38:47 +0200
commitf477c5dfdd755744d16b639869cd1d9c78750880 (patch)
tree7d844afacd1dcd8180d2e2aa5cc14f55367cae71 /src/core/hle/service/set/set.cpp
parentsettings: Add config option for kiosk (quest) mode (diff)
downloadyuzu-f477c5dfdd755744d16b639869cd1d9c78750880.tar
yuzu-f477c5dfdd755744d16b639869cd1d9c78750880.tar.gz
yuzu-f477c5dfdd755744d16b639869cd1d9c78750880.tar.bz2
yuzu-f477c5dfdd755744d16b639869cd1d9c78750880.tar.lz
yuzu-f477c5dfdd755744d16b639869cd1d9c78750880.tar.xz
yuzu-f477c5dfdd755744d16b639869cd1d9c78750880.tar.zst
yuzu-f477c5dfdd755744d16b639869cd1d9c78750880.zip
Diffstat (limited to 'src/core/hle/service/set/set.cpp')
-rw-r--r--src/core/hle/service/set/set.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index 298d85011..b54214421 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -95,6 +95,14 @@ void SET::GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx) {
PushResponseLanguageCode(ctx, post4_0_0_max_entries);
}
+void SET::GetQuestFlag(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_SET, "called");
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(static_cast<u32>(Settings::values.quest_flag));
+}
+
void SET::GetLanguageCode(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called {}", Settings::values.language_index);
@@ -114,7 +122,7 @@ SET::SET() : ServiceFramework("set") {
{5, &SET::GetAvailableLanguageCodes2, "GetAvailableLanguageCodes2"},
{6, &SET::GetAvailableLanguageCodeCount2, "GetAvailableLanguageCodeCount2"},
{7, nullptr, "GetKeyCodeMap"},
- {8, nullptr, "GetQuestFlag"},
+ {8, &SET::GetQuestFlag, "GetQuestFlag"},
{9, nullptr, "GetKeyCodeMap2"},
};
// clang-format on