summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/mnpp/mnpp_app.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-02-11 04:55:28 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2022-02-11 04:55:28 +0100
commit6705439cf3c73890e80cf2909cf4d65592519876 (patch)
tree7077e1100918c103466d1a99a86a9d326961adaf /src/core/hle/service/mnpp/mnpp_app.cpp
parentMerge pull request #7847 from tech-ticks/master (diff)
downloadyuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.gz
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.bz2
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.lz
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.xz
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.tar.zst
yuzu-6705439cf3c73890e80cf2909cf4d65592519876.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/mnpp/mnpp_app.cpp45
1 files changed, 45 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 @@
+// Copyright 2022 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "common/logging/log.h"
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/mnpp/mnpp_app.h"
+#include "core/hle/service/sm/sm.h"
+
+namespace Service::MNPP {
+
+class MNPP_APP final : public ServiceFramework<MNPP_APP> {
+public:
+ explicit MNPP_APP(Core::System& system_) : ServiceFramework{system_, "mnpp:app"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, &MNPP_APP::Unknown0, "unknown0"},
+ {1, &MNPP_APP::Unknown1, "unknown1"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+
+private:
+ void Unknown0(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_MNPP, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultSuccess);
+ }
+
+ void Unknown1(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_MNPP, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultSuccess);
+ }
+};
+
+void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
+ std::make_shared<MNPP_APP>(system)->InstallAsService(service_manager);
+}
+
+} // namespace Service::MNPP