summaryrefslogtreecommitdiff
path: root/src/core/hle/service/mnpp
diff options
context:
space:
mode:
authorGravatar Narr the Reg2022-02-10 21:55:28 -0600
committerGravatar Narr the Reg2022-02-10 21:55:28 -0600
commit6705439cf3c73890e80cf2909cf4d65592519876 (patch)
tree7077e1100918c103466d1a99a86a9d326961adaf /src/core/hle/service/mnpp
parentMerge pull request #7847 from tech-ticks/master (diff)
downloadyuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.gz
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.xz
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.zip
service/mnpp: Stub mnpp_app
Used in Super Nintendo Entertainment Systemâ„¢ - Nintendo Switch Online
Diffstat (limited to 'src/core/hle/service/mnpp')
-rw-r--r--src/core/hle/service/mnpp/mnpp_app.cpp45
-rw-r--r--src/core/hle/service/mnpp/mnpp_app.h20
2 files changed, 65 insertions, 0 deletions
diff --git a/src/core/hle/service/mnpp/mnpp_app.cpp b/src/core/hle/service/mnpp/mnpp_app.cpp
new file mode 100644
index 000000000..53497612f
--- /dev/null
+++ b/src/core/hle/service/mnpp/mnpp_app.cpp
@@ -0,0 +1,45 @@
1// Copyright 2022 yuzu emulator team
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include "common/logging/log.h"
6#include "core/hle/ipc_helpers.h"
7#include "core/hle/service/mnpp/mnpp_app.h"
8#include "core/hle/service/sm/sm.h"
9
10namespace Service::MNPP {
11
12class MNPP_APP final : public ServiceFramework<MNPP_APP> {
13public:
14 explicit MNPP_APP(Core::System& system_) : ServiceFramework{system_, "mnpp:app"} {
15 // clang-format off
16 static const FunctionInfo functions[] = {
17 {0, &MNPP_APP::Unknown0, "unknown0"},
18 {1, &MNPP_APP::Unknown1, "unknown1"},
19 };
20 // clang-format on
21
22 RegisterHandlers(functions);
23 }
24
25private:
26 void Unknown0(Kernel::HLERequestContext& ctx) {
27 LOG_WARNING(Service_MNPP, "(STUBBED) called");
28
29 IPC::ResponseBuilder rb{ctx, 2};
30 rb.Push(ResultSuccess);
31 }
32
33 void Unknown1(Kernel::HLERequestContext& ctx) {
34 LOG_WARNING(Service_MNPP, "(STUBBED) called");
35
36 IPC::ResponseBuilder rb{ctx, 2};
37 rb.Push(ResultSuccess);
38 }
39};
40
41void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
42 std::make_shared<MNPP_APP>(system)->InstallAsService(service_manager);
43}
44
45} // namespace Service::MNPP
diff --git a/src/core/hle/service/mnpp/mnpp_app.h b/src/core/hle/service/mnpp/mnpp_app.h
new file mode 100644
index 000000000..6bf20b494
--- /dev/null
+++ b/src/core/hle/service/mnpp/mnpp_app.h
@@ -0,0 +1,20 @@
1// Copyright 2022 yuzu emulator team
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7namespace Core {
8class System;
9}
10
11namespace Service::SM {
12class ServiceManager;
13}
14
15namespace Service::MNPP {
16
17/// Registers all MNPP services with the specified service manager.
18void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
19
20} // namespace Service::MNPP