From ed48407d185cad6e54cbceefb02e295b2da164cb Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 1 Jun 2018 10:15:09 +1000 Subject: [PATCH] Use ns:am for NeedsUpdateVulnerability on <3.0.0 Signed-off-by: Adubbz --- nx/source/services/ns.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nx/source/services/ns.c b/nx/source/services/ns.c index b2fbefc5..811f62e4 100644 --- a/nx/source/services/ns.c +++ b/nx/source/services/ns.c @@ -148,7 +148,12 @@ Result nsvmNeedsUpdateVulnerability(u8 *out) { raw->magic = SFCI_MAGIC; raw->cmd_id = 1200; - Result rc = serviceIpcDispatch(&g_nsvmSrv); + Result rc; + + if (kernelAbove300()) + rc = serviceIpcDispatch(&g_nsvmSrv); + else + rc = serviceIpcDispatch(&g_nsAppManSrv); if (R_SUCCEEDED(rc)) { IpcParsedCommand r;