am: Update function tables and add missing classes (#4169)
* am: Update function tables and add missing classes * Remove comments (1/5) * Remove comments (2/5) * Remove comments (3/5) * Remove comments (4/5) * Remove comments (5/5) * Remove unused classes (1/2) * Remove unused classes (2/2)
This commit is contained in:
parent
b5d54619cc
commit
ca25a3845e
@ -68,6 +68,7 @@ IWindowController::IWindowController(Core::System& system_)
|
|||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "CreateWindow"},
|
{0, nullptr, "CreateWindow"},
|
||||||
{1, &IWindowController::GetAppletResourceUserId, "GetAppletResourceUserId"},
|
{1, &IWindowController::GetAppletResourceUserId, "GetAppletResourceUserId"},
|
||||||
|
{2, nullptr, "GetAppletResourceUserIdOfCallerApplet"},
|
||||||
{10, &IWindowController::AcquireForegroundRights, "AcquireForegroundRights"},
|
{10, &IWindowController::AcquireForegroundRights, "AcquireForegroundRights"},
|
||||||
{11, nullptr, "ReleaseForegroundRights"},
|
{11, nullptr, "ReleaseForegroundRights"},
|
||||||
{12, nullptr, "RejectToChangeIntoBackground"},
|
{12, nullptr, "RejectToChangeIntoBackground"},
|
||||||
@ -189,8 +190,8 @@ IDisplayController::IDisplayController() : ServiceFramework("IDisplayController"
|
|||||||
{5, nullptr, "GetLastForegroundCaptureImageEx"},
|
{5, nullptr, "GetLastForegroundCaptureImageEx"},
|
||||||
{6, nullptr, "GetLastApplicationCaptureImageEx"},
|
{6, nullptr, "GetLastApplicationCaptureImageEx"},
|
||||||
{7, nullptr, "GetCallerAppletCaptureImageEx"},
|
{7, nullptr, "GetCallerAppletCaptureImageEx"},
|
||||||
{8, nullptr, "TakeScreenShotOfOwnLayer"}, // 2.0.0+
|
{8, nullptr, "TakeScreenShotOfOwnLayer"},
|
||||||
{9, nullptr, "CopyBetweenCaptureBuffers"}, // 5.0.0+
|
{9, nullptr, "CopyBetweenCaptureBuffers"},
|
||||||
{10, nullptr, "AcquireLastApplicationCaptureBuffer"},
|
{10, nullptr, "AcquireLastApplicationCaptureBuffer"},
|
||||||
{11, nullptr, "ReleaseLastApplicationCaptureBuffer"},
|
{11, nullptr, "ReleaseLastApplicationCaptureBuffer"},
|
||||||
{12, nullptr, "AcquireLastForegroundCaptureBuffer"},
|
{12, nullptr, "AcquireLastForegroundCaptureBuffer"},
|
||||||
@ -200,17 +201,14 @@ IDisplayController::IDisplayController() : ServiceFramework("IDisplayController"
|
|||||||
{16, nullptr, "AcquireLastApplicationCaptureBufferEx"},
|
{16, nullptr, "AcquireLastApplicationCaptureBufferEx"},
|
||||||
{17, nullptr, "AcquireLastForegroundCaptureBufferEx"},
|
{17, nullptr, "AcquireLastForegroundCaptureBufferEx"},
|
||||||
{18, nullptr, "AcquireCallerAppletCaptureBufferEx"},
|
{18, nullptr, "AcquireCallerAppletCaptureBufferEx"},
|
||||||
// 2.0.0+
|
|
||||||
{20, nullptr, "ClearCaptureBuffer"},
|
{20, nullptr, "ClearCaptureBuffer"},
|
||||||
{21, nullptr, "ClearAppletTransitionBuffer"},
|
{21, nullptr, "ClearAppletTransitionBuffer"},
|
||||||
// 4.0.0+
|
|
||||||
{22, nullptr, "AcquireLastApplicationCaptureSharedBuffer"},
|
{22, nullptr, "AcquireLastApplicationCaptureSharedBuffer"},
|
||||||
{23, nullptr, "ReleaseLastApplicationCaptureSharedBuffer"},
|
{23, nullptr, "ReleaseLastApplicationCaptureSharedBuffer"},
|
||||||
{24, nullptr, "AcquireLastForegroundCaptureSharedBuffer"},
|
{24, nullptr, "AcquireLastForegroundCaptureSharedBuffer"},
|
||||||
{25, nullptr, "ReleaseLastForegroundCaptureSharedBuffer"},
|
{25, nullptr, "ReleaseLastForegroundCaptureSharedBuffer"},
|
||||||
{26, nullptr, "AcquireCallerAppletCaptureSharedBuffer"},
|
{26, nullptr, "AcquireCallerAppletCaptureSharedBuffer"},
|
||||||
{27, nullptr, "ReleaseCallerAppletCaptureSharedBuffer"},
|
{27, nullptr, "ReleaseCallerAppletCaptureSharedBuffer"},
|
||||||
// 6.0.0+
|
|
||||||
{28, nullptr, "TakeScreenShotOfOwnLayerEx"},
|
{28, nullptr, "TakeScreenShotOfOwnLayerEx"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
@ -225,7 +223,7 @@ IDebugFunctions::IDebugFunctions() : ServiceFramework{"IDebugFunctions"} {
|
|||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "NotifyMessageToHomeMenuForDebug"},
|
{0, nullptr, "NotifyMessageToHomeMenuForDebug"},
|
||||||
{1, nullptr, "OpenMainApplication"},
|
{1, nullptr, "OpenMainApplication"},
|
||||||
{10, nullptr, "EmulateButtonEvent"},
|
{10, nullptr, "PerformSystemButtonPressing"},
|
||||||
{20, nullptr, "InvalidateTransitionLayer"},
|
{20, nullptr, "InvalidateTransitionLayer"},
|
||||||
{30, nullptr, "RequestLaunchApplicationWithUserAndArgumentForDebug"},
|
{30, nullptr, "RequestLaunchApplicationWithUserAndArgumentForDebug"},
|
||||||
{40, nullptr, "GetAppletResourceUsageInfo"},
|
{40, nullptr, "GetAppletResourceUsageInfo"},
|
||||||
@ -267,7 +265,7 @@ ISelfController::ISelfController(Core::System& system,
|
|||||||
{16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"},
|
{16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"},
|
||||||
{17, nullptr, "SetControllerFirmwareUpdateSection"},
|
{17, nullptr, "SetControllerFirmwareUpdateSection"},
|
||||||
{18, nullptr, "SetRequiresCaptureButtonShortPressedMessage"},
|
{18, nullptr, "SetRequiresCaptureButtonShortPressedMessage"},
|
||||||
{19, &ISelfController::SetScreenShotImageOrientation, "SetScreenShotImageOrientation"},
|
{19, &ISelfController::SetAlbumImageOrientation, "SetAlbumImageOrientation"},
|
||||||
{20, nullptr, "SetDesirableKeyboardLayout"},
|
{20, nullptr, "SetDesirableKeyboardLayout"},
|
||||||
{40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"},
|
{40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"},
|
||||||
{41, nullptr, "IsSystemBufferSharingEnabled"},
|
{41, nullptr, "IsSystemBufferSharingEnabled"},
|
||||||
@ -443,7 +441,7 @@ void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext&
|
|||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ISelfController::SetScreenShotImageOrientation(Kernel::HLERequestContext& ctx) {
|
void ISelfController::SetAlbumImageOrientation(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_AM, "(STUBBED) called");
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
@ -607,6 +605,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system,
|
|||||||
{20, nullptr, "PushToGeneralChannel"},
|
{20, nullptr, "PushToGeneralChannel"},
|
||||||
{30, nullptr, "GetHomeButtonReaderLockAccessor"},
|
{30, nullptr, "GetHomeButtonReaderLockAccessor"},
|
||||||
{31, nullptr, "GetReaderLockAccessorEx"},
|
{31, nullptr, "GetReaderLockAccessorEx"},
|
||||||
|
{32, nullptr, "GetWriterLockAccessorEx"},
|
||||||
{40, nullptr, "GetCradleFwVersion"},
|
{40, nullptr, "GetCradleFwVersion"},
|
||||||
{50, &ICommonStateGetter::IsVrModeEnabled, "IsVrModeEnabled"},
|
{50, &ICommonStateGetter::IsVrModeEnabled, "IsVrModeEnabled"},
|
||||||
{51, &ICommonStateGetter::SetVrModeEnabled, "SetVrModeEnabled"},
|
{51, &ICommonStateGetter::SetVrModeEnabled, "SetVrModeEnabled"},
|
||||||
@ -1132,6 +1131,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
|
|||||||
{24, nullptr, "GetLaunchStorageInfoForDebug"},
|
{24, nullptr, "GetLaunchStorageInfoForDebug"},
|
||||||
{25, &IApplicationFunctions::ExtendSaveData, "ExtendSaveData"},
|
{25, &IApplicationFunctions::ExtendSaveData, "ExtendSaveData"},
|
||||||
{26, &IApplicationFunctions::GetSaveDataSize, "GetSaveDataSize"},
|
{26, &IApplicationFunctions::GetSaveDataSize, "GetSaveDataSize"},
|
||||||
|
{27, nullptr, "CreateCacheStorage"},
|
||||||
{30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed, "BeginBlockingHomeButtonShortAndLongPressed"},
|
{30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed, "BeginBlockingHomeButtonShortAndLongPressed"},
|
||||||
{31, &IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed, "EndBlockingHomeButtonShortAndLongPressed"},
|
{31, &IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed, "EndBlockingHomeButtonShortAndLongPressed"},
|
||||||
{32, &IApplicationFunctions::BeginBlockingHomeButton, "BeginBlockingHomeButton"},
|
{32, &IApplicationFunctions::BeginBlockingHomeButton, "BeginBlockingHomeButton"},
|
||||||
@ -1157,6 +1157,8 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
|
|||||||
{120, nullptr, "ExecuteProgram"},
|
{120, nullptr, "ExecuteProgram"},
|
||||||
{121, nullptr, "ClearUserChannel"},
|
{121, nullptr, "ClearUserChannel"},
|
||||||
{122, nullptr, "UnpopToUserChannel"},
|
{122, nullptr, "UnpopToUserChannel"},
|
||||||
|
{123, nullptr, "GetPreviousProgramIndex"},
|
||||||
|
{124, nullptr, "EnableApplicationAllThreadDumpOnCrash"},
|
||||||
{130, &IApplicationFunctions::GetGpuErrorDetectedSystemEvent, "GetGpuErrorDetectedSystemEvent"},
|
{130, &IApplicationFunctions::GetGpuErrorDetectedSystemEvent, "GetGpuErrorDetectedSystemEvent"},
|
||||||
{140, &IApplicationFunctions::GetFriendInvitationStorageChannelEvent, "GetFriendInvitationStorageChannelEvent"},
|
{140, &IApplicationFunctions::GetFriendInvitationStorageChannelEvent, "GetFriendInvitationStorageChannelEvent"},
|
||||||
{141, nullptr, "TryPopFromFriendInvitationStorageChannel"},
|
{141, nullptr, "TryPopFromFriendInvitationStorageChannel"},
|
||||||
|
@ -138,7 +138,7 @@ private:
|
|||||||
void SetFocusHandlingMode(Kernel::HLERequestContext& ctx);
|
void SetFocusHandlingMode(Kernel::HLERequestContext& ctx);
|
||||||
void SetRestartMessageEnabled(Kernel::HLERequestContext& ctx);
|
void SetRestartMessageEnabled(Kernel::HLERequestContext& ctx);
|
||||||
void SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx);
|
void SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx);
|
||||||
void SetScreenShotImageOrientation(Kernel::HLERequestContext& ctx);
|
void SetAlbumImageOrientation(Kernel::HLERequestContext& ctx);
|
||||||
void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx);
|
void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx);
|
||||||
void SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx);
|
void SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx);
|
||||||
void SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
|
void SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
|
||||||
|
@ -10,17 +10,17 @@ SPSM::SPSM() : ServiceFramework{"spsm"} {
|
|||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "GetState"},
|
{0, nullptr, "GetState"},
|
||||||
{1, nullptr, "SleepSystemAndWaitAwake"},
|
{1, nullptr, "EnterSleep"},
|
||||||
{2, nullptr, "Unknown1"},
|
{2, nullptr, "GetLastWakeReason"},
|
||||||
{3, nullptr, "Unknown2"},
|
{3, nullptr, "Shutdown"},
|
||||||
{4, nullptr, "GetNotificationMessageEventHandle"},
|
{4, nullptr, "GetNotificationMessageEventHandle"},
|
||||||
{5, nullptr, "Unknown3"},
|
{5, nullptr, "ReceiveNotificationMessage"},
|
||||||
{6, nullptr, "Unknown4"},
|
{6, nullptr, "AnalyzeLogForLastSleepWakeSequence"},
|
||||||
{7, nullptr, "Unknown5"},
|
{7, nullptr, "ResetEventLog"},
|
||||||
{8, nullptr, "AnalyzePerformanceLogForLastSleepWakeSequence"},
|
{8, nullptr, "AnalyzePerformanceLogForLastSleepWakeSequence"},
|
||||||
{9, nullptr, "ChangeHomeButtonLongPressingTime"},
|
{9, nullptr, "ChangeHomeButtonLongPressingTime"},
|
||||||
{10, nullptr, "Unknown6"},
|
{10, nullptr, "PutErrorState"},
|
||||||
{11, nullptr, "Unknown7"},
|
{11, nullptr, "InvalidateCurrentHomeButtonPressing"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user