summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/omm/omm.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-14 18:02:38 +0100
committerGitHub <noreply@github.com>2024-02-14 18:02:38 +0100
commit1e8554b01f007d86e0740e44ab50c59d12d5c9f5 (patch)
treec8749abcba107559141113f2b997238087b18d52 /src/core/hle/service/omm/omm.cpp
parentMerge pull request #13009 from t895/message-dialog-fix (diff)
parentam: move out omm interfaces to new module (diff)
downloadyuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.tar
yuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.tar.gz
yuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.tar.bz2
yuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.tar.lz
yuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.tar.xz
yuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.tar.zst
yuzu-1e8554b01f007d86e0740e44ab50c59d12d5c9f5.zip
Diffstat (limited to 'src/core/hle/service/omm/omm.cpp')
-rw-r--r--src/core/hle/service/omm/omm.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/service/omm/omm.cpp b/src/core/hle/service/omm/omm.cpp
new file mode 100644
index 000000000..b95319e26
--- /dev/null
+++ b/src/core/hle/service/omm/omm.cpp
@@ -0,0 +1,22 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/service/omm/omm.h"
+#include "core/hle/service/omm/operation_mode_manager.h"
+#include "core/hle/service/omm/policy_manager_system.h"
+#include "core/hle/service/omm/power_state_interface.h"
+#include "core/hle/service/server_manager.h"
+
+namespace Service::OMM {
+
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("idle:sys",
+ std::make_shared<IPolicyManagerSystem>(system));
+ server_manager->RegisterNamedService("omm", std::make_shared<IOperationModeManager>(system));
+ server_manager->RegisterNamedService("spsm", std::make_shared<IPowerStateInterface>(system));
+ ServerManager::RunServer(std::move(server_manager));
+}
+
+} // namespace Service::OMM