From 5e5bb0c32e155131585baad82b7a1d52551488cb Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Mon, 1 Feb 2016 21:37:10 -0500
Subject: [PATCH] services: Update function tables

---
 src/core/hle/service/cecd/cecd_u.cpp | 7 ++++---
 src/core/hle/service/ns_s.cpp        | 9 +++++++--
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/core/hle/service/cecd/cecd_u.cpp b/src/core/hle/service/cecd/cecd_u.cpp
index 0a23bafbc4..6a6dca8e51 100644
--- a/src/core/hle/service/cecd/cecd_u.cpp
+++ b/src/core/hle/service/cecd/cecd_u.cpp
@@ -9,11 +9,12 @@
 namespace Service {
 namespace CECD {
 
-// Empty arrays are illegal -- commented out until an entry is added.
-//const Interface::FunctionInfo FunctionTable[] = { };
+static const Interface::FunctionInfo FunctionTable[] = {
+    { 0x00120104, nullptr, "ReadSavedData" },
+};
 
 CECD_U_Interface::CECD_U_Interface() {
-    //Register(FunctionTable);
+    Register(FunctionTable);
 }
 
 } // namespace CECD
diff --git a/src/core/hle/service/ns_s.cpp b/src/core/hle/service/ns_s.cpp
index 99e8e08806..2760a4d5bd 100644
--- a/src/core/hle/service/ns_s.cpp
+++ b/src/core/hle/service/ns_s.cpp
@@ -14,14 +14,19 @@ namespace NS_S {
 const Interface::FunctionInfo FunctionTable[] = {
     {0x000100C0, nullptr,                      "LaunchFIRM"},
     {0x000200C0, nullptr,                      "LaunchTitle"},
+    {0x00030000, nullptr,                      "TerminateApplication"},
+    {0x00040040, nullptr,                      "TerminateProcess"},
     {0x000500C0, nullptr,                      "LaunchApplicationFIRM"},
     {0x00060042, nullptr,                      "SetFIRMParams4A0"},
     {0x00070042, nullptr,                      "CardUpdateInitialize"},
-    {0x000D0140, nullptr,                      "SetFIRMParams4B0"},
+    {0x00080000, nullptr,                      "CardUpdateShutdown"},
+    {0x000D0140, nullptr,                      "SetTWLBannerHMAC"},
     {0x000E0000, nullptr,                      "ShutdownAsync"},
     {0x00100180, nullptr,                      "RebootSystem"},
+    {0x00110100, nullptr,                      "TerminateTitle"},
+    {0x001200C0, nullptr,                      "SetApplicationCpuTimeLimit"},
     {0x00150140, nullptr,                      "LaunchApplication"},
-    {0x00160000, nullptr,                      "HardRebootSystem"},
+    {0x00160000, nullptr,                      "RebootSystemClean"},
 };
 
 ////////////////////////////////////////////////////////////////////////////////////////////////////