summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2020-11-29 03:47:10 -0500
committerGravatar Morph2020-12-18 10:33:28 -0500
commit46183294b2d0db8795ea8441d1942ba32c6ebb00 (patch)
tree7db390745fa7951dacf16a40a367c782fbc8f8e7
parentfrontend/input_interpreter: Add InputInterpreter API (diff)
downloadyuzu-46183294b2d0db8795ea8441d1942ba32c6ebb00.tar.gz
yuzu-46183294b2d0db8795ea8441d1942ba32c6ebb00.tar.xz
yuzu-46183294b2d0db8795ea8441d1942ba32c6ebb00.zip
ns_vm: Stub NeedsUpdateVulnerability
This is used to force system updates on launching the web browser. We do not care about system updates so this can be set to false.
-rw-r--r--src/core/hle/service/ns/ns.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp
index ef7584641..6ccf8995c 100644
--- a/src/core/hle/service/ns/ns.cpp
+++ b/src/core/hle/service/ns/ns.cpp
@@ -673,7 +673,7 @@ public:
673 explicit NS_VM(Core::System& system_) : ServiceFramework{system_, "ns:vm"} { 673 explicit NS_VM(Core::System& system_) : ServiceFramework{system_, "ns:vm"} {
674 // clang-format off 674 // clang-format off
675 static const FunctionInfo functions[] = { 675 static const FunctionInfo functions[] = {
676 {1200, nullptr, "NeedsUpdateVulnerability"}, 676 {1200, &NS_VM::NeedsUpdateVulnerability, "NeedsUpdateVulnerability"},
677 {1201, nullptr, "UpdateSafeSystemVersionForDebug"}, 677 {1201, nullptr, "UpdateSafeSystemVersionForDebug"},
678 {1202, nullptr, "GetSafeSystemVersion"}, 678 {1202, nullptr, "GetSafeSystemVersion"},
679 }; 679 };
@@ -681,6 +681,15 @@ public:
681 681
682 RegisterHandlers(functions); 682 RegisterHandlers(functions);
683 } 683 }
684
685private:
686 void NeedsUpdateVulnerability(Kernel::HLERequestContext& ctx) {
687 LOG_WARNING(Service_NS, "(STUBBED) called");
688
689 IPC::ResponseBuilder rb{ctx, 3};
690 rb.Push(RESULT_SUCCESS);
691 rb.Push(false);
692 }
684}; 693};
685 694
686void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { 695void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {