summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/lm
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-15 04:18:42 +0200
committerbunnei <bunneidev@gmail.com>2017-10-15 04:18:42 +0200
commit960a1416de3780e91855d9389c4534acf8c061df (patch)
tree6b373fed639eb39098ba33e6247893919005a2c8 /src/core/hle/service/lm
parentnso: Add a log for loading submodules. (diff)
downloadyuzu-960a1416de3780e91855d9389c4534acf8c061df.tar
yuzu-960a1416de3780e91855d9389c4534acf8c061df.tar.gz
yuzu-960a1416de3780e91855d9389c4534acf8c061df.tar.bz2
yuzu-960a1416de3780e91855d9389c4534acf8c061df.tar.lz
yuzu-960a1416de3780e91855d9389c4534acf8c061df.tar.xz
yuzu-960a1416de3780e91855d9389c4534acf8c061df.tar.zst
yuzu-960a1416de3780e91855d9389c4534acf8c061df.zip
Diffstat (limited to 'src/core/hle/service/lm')
-rw-r--r--src/core/hle/service/lm/lm.cpp43
-rw-r--r--src/core/hle/service/lm/lm.h25
2 files changed, 68 insertions, 0 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
new file mode 100644
index 000000000..7296b531b
--- /dev/null
+++ b/src/core/hle/service/lm/lm.cpp
@@ -0,0 +1,43 @@
+// Copyright 2017 Citra Emulator Project
+// 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/lm/lm.h"
+
+namespace Service {
+namespace LM {
+
+void InstallInterfaces(SM::ServiceManager& service_manager) {
+ std::make_shared<LM>()->InstallAsService(service_manager);
+}
+
+/**
+ * SRV::Initialize service function
+ * Inputs:
+ * 0: 0x00000000
+ * Outputs:
+ * 1: ResultCode
+ */
+void LM::Initialize(Kernel::HLERequestContext& ctx) {
+ IPC::RequestBuilder rb{ctx, 1};
+ rb.Push(RESULT_SUCCESS);
+ LOG_WARNING(Service_SM, "(STUBBED) called");
+}
+
+LM::LM() : ServiceFramework("lm") {
+ static const FunctionInfo functions[] = {
+ {0x00000000, &LM::Initialize, "Initialize"},
+ {0x00000001, nullptr, "Unknown2"},
+ {0x00000002, nullptr, "Unknown3"},
+ {0x00000003, nullptr, "Unknown4"},
+ {0x00000004, nullptr, "Unknown5"},
+ };
+ RegisterHandlers(functions);
+}
+
+LM::~LM() = default;
+
+} // namespace LM
+} // namespace Service
diff --git a/src/core/hle/service/lm/lm.h b/src/core/hle/service/lm/lm.h
new file mode 100644
index 000000000..c497d82eb
--- /dev/null
+++ b/src/core/hle/service/lm/lm.h
@@ -0,0 +1,25 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace LM {
+
+class LM final : public ServiceFramework<LM> {
+public:
+ explicit LM();
+ ~LM();
+
+private:
+ void Initialize(Kernel::HLERequestContext& ctx);
+};
+
+/// Registers all LM services with the specified service manager.
+void InstallInterfaces(SM::ServiceManager& service_manager);
+
+} // namespace LM
+} // namespace Service