diff options
author | Liam <byteslice@airmail.cc> | 2024-02-12 01:51:14 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-12 15:16:02 +0100 |
commit | 2c49ebbeead0d1269aefca832d284bd3a1be5a01 (patch) | |
tree | 417a5a975cfe524e757d1a71c5feb4753f914515 /src/core/hle/service/am/home_menu_functions.cpp | |
parent | am: rewrite IGlobalStateController, add ICradleFirmwareUpdater (diff) | |
download | yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.tar yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.tar.gz yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.tar.bz2 yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.tar.lz yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.tar.xz yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.tar.zst yuzu-2c49ebbeead0d1269aefca832d284bd3a1be5a01.zip |
Diffstat (limited to 'src/core/hle/service/am/home_menu_functions.cpp')
-rw-r--r-- | src/core/hle/service/am/home_menu_functions.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/core/hle/service/am/home_menu_functions.cpp b/src/core/hle/service/am/home_menu_functions.cpp deleted file mode 100644 index 640e9fbb7..000000000 --- a/src/core/hle/service/am/home_menu_functions.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#include "core/hle/service/am/home_menu_functions.h" -#include "core/hle/service/ipc_helpers.h" - -namespace Service::AM { - -IHomeMenuFunctions::IHomeMenuFunctions(Core::System& system_) - : ServiceFramework{system_, "IHomeMenuFunctions"}, service_context{system, - "IHomeMenuFunctions"} { - // clang-format off - static const FunctionInfo functions[] = { - {10, &IHomeMenuFunctions::RequestToGetForeground, "RequestToGetForeground"}, - {11, nullptr, "LockForeground"}, - {12, nullptr, "UnlockForeground"}, - {20, nullptr, "PopFromGeneralChannel"}, - {21, &IHomeMenuFunctions::GetPopFromGeneralChannelEvent, "GetPopFromGeneralChannelEvent"}, - {30, nullptr, "GetHomeButtonWriterLockAccessor"}, - {31, nullptr, "GetWriterLockAccessorEx"}, - {40, nullptr, "IsSleepEnabled"}, - {41, nullptr, "IsRebootEnabled"}, - {50, nullptr, "LaunchSystemApplet"}, - {51, nullptr, "LaunchStarter"}, - {100, nullptr, "PopRequestLaunchApplicationForDebug"}, - {110, nullptr, "IsForceTerminateApplicationDisabledForDebug"}, - {200, nullptr, "LaunchDevMenu"}, - {1000, nullptr, "SetLastApplicationExitReason"}, - }; - // clang-format on - - RegisterHandlers(functions); - - pop_from_general_channel_event = - service_context.CreateEvent("IHomeMenuFunctions:PopFromGeneralChannelEvent"); -} - -IHomeMenuFunctions::~IHomeMenuFunctions() { - service_context.CloseEvent(pop_from_general_channel_event); -} - -void IHomeMenuFunctions::RequestToGetForeground(HLERequestContext& ctx) { - LOG_WARNING(Service_AM, "(STUBBED) called"); - - IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); -} - -void IHomeMenuFunctions::GetPopFromGeneralChannelEvent(HLERequestContext& ctx) { - LOG_WARNING(Service_AM, "(STUBBED) called"); - - IPC::ResponseBuilder rb{ctx, 2, 1}; - rb.Push(ResultSuccess); - rb.PushCopyObjects(pop_from_general_channel_event->GetReadableEvent()); -} - -} // namespace Service::AM |