aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/apt/ns_s.cpp
blob: dfb178d7b2a161448dac180d0c0c630ec3d0153b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include "common/archives.h"
#include "core/hle/service/apt/ns_s.h"

namespace Service::NS {

NS_S::NS_S(std::shared_ptr<Service::APT::Module> apt)
    : Service::APT::Module::NSInterface(std::move(apt), "ns:s", 3) {
    static const FunctionInfo functions[] = {
        // clang-format off
        {0x0001, nullptr, "LaunchFIRM"},
        {0x0002, nullptr, "LaunchTitle"},
        {0x0003, nullptr, "TerminateApplication"},
        {0x0004, nullptr, "TerminateProcess"},
        {0x0005, nullptr, "LaunchApplicationFIRM"},
        {0x0006, &NS_S::SetWirelessRebootInfo, "SetWirelessRebootInfo"},
        {0x0007, nullptr, "CardUpdateInitialize"},
        {0x0008, nullptr, "CardUpdateShutdown"},
        {0x000D, nullptr, "SetTWLBannerHMAC"},
        {0x000E, &NS_S::ShutdownAsync, "ShutdownAsync"},
        {0x0010, &NS_S::RebootSystem, "RebootSystem"},
        {0x0011, nullptr, "TerminateTitle"},
        {0x0012, nullptr, "SetApplicationCpuTimeLimit"},
        {0x0015, nullptr, "LaunchApplication"},
        {0x0016, &NS_S::RebootSystemClean, "RebootSystemClean"},
        // clang-format on
    };
    RegisterHandlers(functions);
}

} // namespace Service::NS

SERIALIZE_EXPORT_IMPL(Service::NS::NS_S)