|
|
@ -638,10 +638,12 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF
|
|
|
|
{24, nullptr, "GetLaunchStorageInfoForDebug"},
|
|
|
|
{24, nullptr, "GetLaunchStorageInfoForDebug"},
|
|
|
|
{25, nullptr, "ExtendSaveData"},
|
|
|
|
{25, nullptr, "ExtendSaveData"},
|
|
|
|
{26, nullptr, "GetSaveDataSize"},
|
|
|
|
{26, nullptr, "GetSaveDataSize"},
|
|
|
|
{30, nullptr, "BeginBlockingHomeButtonShortAndLongPressed"},
|
|
|
|
{30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed,
|
|
|
|
{31, nullptr, "EndBlockingHomeButtonShortAndLongPressed"},
|
|
|
|
"BeginBlockingHomeButtonShortAndLongPressed"},
|
|
|
|
{32, nullptr, "BeginBlockingHomeButton"},
|
|
|
|
{31, &IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed,
|
|
|
|
{33, nullptr, "EndBlockingHomeButton"},
|
|
|
|
"EndBlockingHomeButtonShortAndLongPressed"},
|
|
|
|
|
|
|
|
{32, &IApplicationFunctions::BeginBlockingHomeButton, "BeginBlockingHomeButton"},
|
|
|
|
|
|
|
|
{33, &IApplicationFunctions::EndBlockingHomeButton, "EndBlockingHomeButton"},
|
|
|
|
{40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"},
|
|
|
|
{40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"},
|
|
|
|
{50, &IApplicationFunctions::GetPseudoDeviceId, "GetPseudoDeviceId"},
|
|
|
|
{50, &IApplicationFunctions::GetPseudoDeviceId, "GetPseudoDeviceId"},
|
|
|
|
{60, nullptr, "SetMediaPlaybackStateForApplication"},
|
|
|
|
{60, nullptr, "SetMediaPlaybackStateForApplication"},
|
|
|
@ -669,6 +671,32 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF
|
|
|
|
|
|
|
|
|
|
|
|
IApplicationFunctions::~IApplicationFunctions() = default;
|
|
|
|
IApplicationFunctions::~IApplicationFunctions() = default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
|
|
|
|
|
|
|
|
Kernel::HLERequestContext& ctx) {
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
|
|
|
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed(
|
|
|
|
|
|
|
|
Kernel::HLERequestContext& ctx) {
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
|
|
|
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void IApplicationFunctions::BeginBlockingHomeButton(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
|
|
|
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void IApplicationFunctions::EndBlockingHomeButton(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
|
|
|
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
|
|
|
|
void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
|
|
|
|
constexpr std::array<u8, 0x88> data{{
|
|
|
|
constexpr std::array<u8, 0x88> data{{
|
|
|
|
0xca, 0x97, 0x94, 0xc7, // Magic
|
|
|
|
0xca, 0x97, 0x94, 0xc7, // Magic
|
|
|
|