diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-04 07:40:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 07:40:41 +0200 |
commit | 70b595a63b53e657ec2fe6640d16f20cb24d433e (patch) | |
tree | 7bf36adf74934bca8551a7f582882c722271da17 /src/core | |
parent | Merge pull request #2613 from ogniK5377/InitalizeApplicationInfo (diff) | |
parent | set: Implement GetQuestFlag (diff) | |
download | yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.tar yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.tar.gz yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.tar.bz2 yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.tar.lz yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.tar.xz yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.tar.zst yuzu-70b595a63b53e657ec2fe6640d16f20cb24d433e.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/set/set.cpp | 10 | ||||
-rw-r--r-- | src/core/hle/service/set/set.h | 1 | ||||
-rw-r--r-- | src/core/settings.h | 1 |
3 files changed, 11 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 diff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.h index 31f9cb296..b154e08aa 100644 --- a/src/core/hle/service/set/set.h +++ b/src/core/hle/service/set/set.h @@ -42,6 +42,7 @@ private: void GetAvailableLanguageCodes2(Kernel::HLERequestContext& ctx); void GetAvailableLanguageCodeCount(Kernel::HLERequestContext& ctx); void GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx); + void GetQuestFlag(Kernel::HLERequestContext& ctx); }; } // namespace Service::Set diff --git a/src/core/settings.h b/src/core/settings.h index e2ffcaaf7..0e0b4e15c 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -416,6 +416,7 @@ struct Values { bool dump_exefs; bool dump_nso; bool reporting_services; + bool quest_flag; // WebService bool enable_telemetry; |