diff options
| author | 2024-02-11 21:01:19 -0500 | |
|---|---|---|
| committer | 2024-02-12 09:18:29 -0500 | |
| commit | bca698a17ae4b39106cd7f8c7eef06ccc7c8d6dd (patch) | |
| tree | cdb54c90d4ef48e0efc9c4d47d49fd64ea3d7875 /src/core/hle/service/am | |
| parent | am: rewrite IApplicationCreator (diff) | |
| download | yuzu-bca698a17ae4b39106cd7f8c7eef06ccc7c8d6dd.tar.gz yuzu-bca698a17ae4b39106cd7f8c7eef06ccc7c8d6dd.tar.xz yuzu-bca698a17ae4b39106cd7f8c7eef06ccc7c8d6dd.zip | |
am: move out omm interfaces to new module
Diffstat (limited to 'src/core/hle/service/am')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/am/idle.cpp | 25 | ||||
| -rw-r--r-- | src/core/hle/service/am/idle.h | 20 | ||||
| -rw-r--r-- | src/core/hle/service/am/omm.cpp | 48 | ||||
| -rw-r--r-- | src/core/hle/service/am/omm.h | 20 | ||||
| -rw-r--r-- | src/core/hle/service/am/spsm.cpp | 31 | ||||
| -rw-r--r-- | src/core/hle/service/am/spsm.h | 20 |
7 files changed, 0 insertions, 170 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index da0f9e3df..9dc710ba9 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -2,11 +2,8 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/am/am.h" | 4 | #include "core/hle/service/am/am.h" |
| 5 | #include "core/hle/service/am/idle.h" | ||
| 6 | #include "core/hle/service/am/omm.h" | ||
| 7 | #include "core/hle/service/am/service/all_system_applet_proxies_service.h" | 5 | #include "core/hle/service/am/service/all_system_applet_proxies_service.h" |
| 8 | #include "core/hle/service/am/service/application_proxy_service.h" | 6 | #include "core/hle/service/am/service/application_proxy_service.h" |
| 9 | #include "core/hle/service/am/spsm.h" | ||
| 10 | #include "core/hle/service/server_manager.h" | 7 | #include "core/hle/service/server_manager.h" |
| 11 | 8 | ||
| 12 | namespace Service::AM { | 9 | namespace Service::AM { |
| @@ -18,9 +15,6 @@ void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) { | |||
| 18 | "appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, nvnflinger)); | 15 | "appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, nvnflinger)); |
| 19 | server_manager->RegisterNamedService( | 16 | server_manager->RegisterNamedService( |
| 20 | "appletOE", std::make_shared<IApplicationProxyService>(system, nvnflinger)); | 17 | "appletOE", std::make_shared<IApplicationProxyService>(system, nvnflinger)); |
| 21 | server_manager->RegisterNamedService("idle:sys", std::make_shared<IdleSys>(system)); | ||
| 22 | server_manager->RegisterNamedService("omm", std::make_shared<OMM>(system)); | ||
| 23 | server_manager->RegisterNamedService("spsm", std::make_shared<SPSM>(system)); | ||
| 24 | ServerManager::RunServer(std::move(server_manager)); | 18 | ServerManager::RunServer(std::move(server_manager)); |
| 25 | } | 19 | } |
| 26 | 20 | ||
diff --git a/src/core/hle/service/am/idle.cpp b/src/core/hle/service/am/idle.cpp deleted file mode 100644 index 603515284..000000000 --- a/src/core/hle/service/am/idle.cpp +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/am/idle.h" | ||
| 5 | |||
| 6 | namespace Service::AM { | ||
| 7 | |||
| 8 | IdleSys::IdleSys(Core::System& system_) : ServiceFramework{system_, "idle:sys"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "GetAutoPowerDownEvent"}, | ||
| 12 | {1, nullptr, "IsAutoPowerDownRequested"}, | ||
| 13 | {2, nullptr, "Unknown2"}, | ||
| 14 | {3, nullptr, "SetHandlingContext"}, | ||
| 15 | {4, nullptr, "LoadAndApplySettings"}, | ||
| 16 | {5, nullptr, "ReportUserIsActive"}, | ||
| 17 | }; | ||
| 18 | // clang-format on | ||
| 19 | |||
| 20 | RegisterHandlers(functions); | ||
| 21 | } | ||
| 22 | |||
| 23 | IdleSys::~IdleSys() = default; | ||
| 24 | |||
| 25 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/am/idle.h b/src/core/hle/service/am/idle.h deleted file mode 100644 index 15b31f67e..000000000 --- a/src/core/hle/service/am/idle.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::AM { | ||
| 13 | |||
| 14 | class IdleSys final : public ServiceFramework<IdleSys> { | ||
| 15 | public: | ||
| 16 | explicit IdleSys(Core::System& system_); | ||
| 17 | ~IdleSys() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/am/omm.cpp b/src/core/hle/service/am/omm.cpp deleted file mode 100644 index 66824e495..000000000 --- a/src/core/hle/service/am/omm.cpp +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/am/omm.h" | ||
| 5 | |||
| 6 | namespace Service::AM { | ||
| 7 | |||
| 8 | OMM::OMM(Core::System& system_) : ServiceFramework{system_, "omm"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "GetOperationMode"}, | ||
| 12 | {1, nullptr, "GetOperationModeChangeEvent"}, | ||
| 13 | {2, nullptr, "EnableAudioVisual"}, | ||
| 14 | {3, nullptr, "DisableAudioVisual"}, | ||
| 15 | {4, nullptr, "EnterSleepAndWait"}, | ||
| 16 | {5, nullptr, "GetCradleStatus"}, | ||
| 17 | {6, nullptr, "FadeInDisplay"}, | ||
| 18 | {7, nullptr, "FadeOutDisplay"}, | ||
| 19 | {8, nullptr, "GetCradleFwVersion"}, | ||
| 20 | {9, nullptr, "NotifyCecSettingsChanged"}, | ||
| 21 | {10, nullptr, "SetOperationModePolicy"}, | ||
| 22 | {11, nullptr, "GetDefaultDisplayResolution"}, | ||
| 23 | {12, nullptr, "GetDefaultDisplayResolutionChangeEvent"}, | ||
| 24 | {13, nullptr, "UpdateDefaultDisplayResolution"}, | ||
| 25 | {14, nullptr, "ShouldSleepOnBoot"}, | ||
| 26 | {15, nullptr, "NotifyHdcpApplicationExecutionStarted"}, | ||
| 27 | {16, nullptr, "NotifyHdcpApplicationExecutionFinished"}, | ||
| 28 | {17, nullptr, "NotifyHdcpApplicationDrawingStarted"}, | ||
| 29 | {18, nullptr, "NotifyHdcpApplicationDrawingFinished"}, | ||
| 30 | {19, nullptr, "GetHdcpAuthenticationFailedEvent"}, | ||
| 31 | {20, nullptr, "GetHdcpAuthenticationFailedEmulationEnabled"}, | ||
| 32 | {21, nullptr, "SetHdcpAuthenticationFailedEmulation"}, | ||
| 33 | {22, nullptr, "GetHdcpStateChangeEvent"}, | ||
| 34 | {23, nullptr, "GetHdcpState"}, | ||
| 35 | {24, nullptr, "ShowCardUpdateProcessing"}, | ||
| 36 | {25, nullptr, "SetApplicationCecSettingsAndNotifyChanged"}, | ||
| 37 | {26, nullptr, "GetOperationModeSystemInfo"}, | ||
| 38 | {27, nullptr, "GetAppletFullAwakingSystemEvent"}, | ||
| 39 | {28, nullptr, "CreateCradleFirmwareUpdater"}, | ||
| 40 | }; | ||
| 41 | // clang-format on | ||
| 42 | |||
| 43 | RegisterHandlers(functions); | ||
| 44 | } | ||
| 45 | |||
| 46 | OMM::~OMM() = default; | ||
| 47 | |||
| 48 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/am/omm.h b/src/core/hle/service/am/omm.h deleted file mode 100644 index 73d0c82d5..000000000 --- a/src/core/hle/service/am/omm.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::AM { | ||
| 13 | |||
| 14 | class OMM final : public ServiceFramework<OMM> { | ||
| 15 | public: | ||
| 16 | explicit OMM(Core::System& system_); | ||
| 17 | ~OMM() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/am/spsm.cpp b/src/core/hle/service/am/spsm.cpp deleted file mode 100644 index ec581e32b..000000000 --- a/src/core/hle/service/am/spsm.cpp +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/am/spsm.h" | ||
| 5 | |||
| 6 | namespace Service::AM { | ||
| 7 | |||
| 8 | SPSM::SPSM(Core::System& system_) : ServiceFramework{system_, "spsm"} { | ||
| 9 | // clang-format off | ||
| 10 | static const FunctionInfo functions[] = { | ||
| 11 | {0, nullptr, "GetState"}, | ||
| 12 | {1, nullptr, "EnterSleep"}, | ||
| 13 | {2, nullptr, "GetLastWakeReason"}, | ||
| 14 | {3, nullptr, "Shutdown"}, | ||
| 15 | {4, nullptr, "GetNotificationMessageEventHandle"}, | ||
| 16 | {5, nullptr, "ReceiveNotificationMessage"}, | ||
| 17 | {6, nullptr, "AnalyzeLogForLastSleepWakeSequence"}, | ||
| 18 | {7, nullptr, "ResetEventLog"}, | ||
| 19 | {8, nullptr, "AnalyzePerformanceLogForLastSleepWakeSequence"}, | ||
| 20 | {9, nullptr, "ChangeHomeButtonLongPressingTime"}, | ||
| 21 | {10, nullptr, "PutErrorState"}, | ||
| 22 | {11, nullptr, "InvalidateCurrentHomeButtonPressing"}, | ||
| 23 | }; | ||
| 24 | // clang-format on | ||
| 25 | |||
| 26 | RegisterHandlers(functions); | ||
| 27 | } | ||
| 28 | |||
| 29 | SPSM::~SPSM() = default; | ||
| 30 | |||
| 31 | } // namespace Service::AM | ||
diff --git a/src/core/hle/service/am/spsm.h b/src/core/hle/service/am/spsm.h deleted file mode 100644 index 922f8863e..000000000 --- a/src/core/hle/service/am/spsm.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Core { | ||
| 9 | class System; | ||
| 10 | } | ||
| 11 | |||
| 12 | namespace Service::AM { | ||
| 13 | |||
| 14 | class SPSM final : public ServiceFramework<SPSM> { | ||
| 15 | public: | ||
| 16 | explicit SPSM(Core::System& system_); | ||
| 17 | ~SPSM() override; | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::AM | ||