diff options
| author | 2018-04-10 18:36:00 +0300 | |
|---|---|---|
| committer | 2018-04-10 18:36:00 +0300 | |
| commit | 84d39530cf1b60f8c5f61e9fc6d52de1c2e239c7 (patch) | |
| tree | 2b438c975d826d6763d5c106daf68000e0697901 /src | |
| parent | Merge pull request #314 from jroweboy/tegra-progress-3b (diff) | |
| download | yuzu-84d39530cf1b60f8c5f61e9fc6d52de1c2e239c7.tar.gz yuzu-84d39530cf1b60f8c5f61e9fc6d52de1c2e239c7.tar.xz yuzu-84d39530cf1b60f8c5f61e9fc6d52de1c2e239c7.zip | |
Updated AM with more service names.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 84 |
1 files changed, 82 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index bab338205..cda1f419a 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -19,8 +19,11 @@ namespace AM { | |||
| 19 | 19 | ||
| 20 | IWindowController::IWindowController() : ServiceFramework("IWindowController") { | 20 | IWindowController::IWindowController() : ServiceFramework("IWindowController") { |
| 21 | static const FunctionInfo functions[] = { | 21 | static const FunctionInfo functions[] = { |
| 22 | {0, nullptr, "CreateWindow"}, | ||
| 22 | {1, &IWindowController::GetAppletResourceUserId, "GetAppletResourceUserId"}, | 23 | {1, &IWindowController::GetAppletResourceUserId, "GetAppletResourceUserId"}, |
| 23 | {10, &IWindowController::AcquireForegroundRights, "AcquireForegroundRights"}, | 24 | {10, &IWindowController::AcquireForegroundRights, "AcquireForegroundRights"}, |
| 25 | {11, nullptr, "ReleaseForegroundRights"}, | ||
| 26 | {12, nullptr, "RejectToChangeIntoBackground"}, | ||
| 24 | }; | 27 | }; |
| 25 | RegisterHandlers(functions); | 28 | RegisterHandlers(functions); |
| 26 | } | 29 | } |
| @@ -78,8 +81,11 @@ IDebugFunctions::IDebugFunctions() : ServiceFramework("IDebugFunctions") {} | |||
| 78 | ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | 81 | ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) |
| 79 | : ServiceFramework("ISelfController"), nvflinger(std::move(nvflinger)) { | 82 | : ServiceFramework("ISelfController"), nvflinger(std::move(nvflinger)) { |
| 80 | static const FunctionInfo functions[] = { | 83 | static const FunctionInfo functions[] = { |
| 84 | {0, nullptr, "Exit"}, | ||
| 81 | {1, &ISelfController::LockExit, "LockExit"}, | 85 | {1, &ISelfController::LockExit, "LockExit"}, |
| 82 | {2, &ISelfController::UnlockExit, "UnlockExit"}, | 86 | {2, &ISelfController::UnlockExit, "UnlockExit"}, |
| 87 | {3, nullptr, "EnterFatalSection"}, | ||
| 88 | {4, nullptr, "LeaveFatalSection"}, | ||
| 83 | {9, &ISelfController::GetLibraryAppletLaunchableEvent, "GetLibraryAppletLaunchableEvent"}, | 89 | {9, &ISelfController::GetLibraryAppletLaunchableEvent, "GetLibraryAppletLaunchableEvent"}, |
| 84 | {10, &ISelfController::SetScreenShotPermission, "SetScreenShotPermission"}, | 90 | {10, &ISelfController::SetScreenShotPermission, "SetScreenShotPermission"}, |
| 85 | {11, &ISelfController::SetOperationModeChangedNotification, | 91 | {11, &ISelfController::SetOperationModeChangedNotification, |
| @@ -88,8 +94,29 @@ ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger | |||
| 88 | "SetPerformanceModeChangedNotification"}, | 94 | "SetPerformanceModeChangedNotification"}, |
| 89 | {13, &ISelfController::SetFocusHandlingMode, "SetFocusHandlingMode"}, | 95 | {13, &ISelfController::SetFocusHandlingMode, "SetFocusHandlingMode"}, |
| 90 | {14, &ISelfController::SetRestartMessageEnabled, "SetRestartMessageEnabled"}, | 96 | {14, &ISelfController::SetRestartMessageEnabled, "SetRestartMessageEnabled"}, |
| 97 | {15, nullptr, "SetScreenShotAppletIdentityInfo"}, | ||
| 91 | {16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"}, | 98 | {16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"}, |
| 99 | {17, nullptr, "SetControllerFirmwareUpdateSection"}, | ||
| 100 | {18, nullptr, "SetRequiresCaptureButtonShortPressedMessage"}, | ||
| 101 | {19, nullptr, "SetScreenShotImageOrientation"}, | ||
| 102 | {20, nullptr, "SetDesirableKeyboardLayout"}, | ||
| 92 | {40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"}, | 103 | {40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"}, |
| 104 | {41, nullptr, "IsSystemBufferSharingEnabled"}, | ||
| 105 | {42, nullptr, "GetSystemSharedLayerHandle"}, | ||
| 106 | {50, nullptr, "SetHandlesRequestToDisplay"}, | ||
| 107 | {51, nullptr, "ApproveToDisplay"}, | ||
| 108 | {60, nullptr, "OverrideAutoSleepTimeAndDimmingTime"}, | ||
| 109 | {61, nullptr, "SetMediaPlaybackState"}, | ||
| 110 | {62, nullptr, "SetIdleTimeDetectionExtension"}, | ||
| 111 | {63, nullptr, "GetIdleTimeDetectionExtension"}, | ||
| 112 | {64, nullptr, "SetInputDetectionSourceSet"} | ||
| 113 | {65, nullptr, "ReportUserIsActive"}, | ||
| 114 | {66, nullptr, "GetCurrentIlluminance"}, | ||
| 115 | {67, nullptr, "IsIlluminanceAvailable"}, | ||
| 116 | {68, nullptr, "SetAutoSleepDisabled"}, | ||
| 117 | {69, nullptr, "IsAutoSleepDisabled"}, | ||
| 118 | {70, nullptr, "ReportMultimediaError"}, | ||
| 119 | {80, nullptr, "SetWirelessPriorityMode"}, | ||
| 93 | }; | 120 | }; |
| 94 | RegisterHandlers(functions); | 121 | RegisterHandlers(functions); |
| 95 | 122 | ||
| @@ -206,9 +233,30 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter" | |||
| 206 | static const FunctionInfo functions[] = { | 233 | static const FunctionInfo functions[] = { |
| 207 | {0, &ICommonStateGetter::GetEventHandle, "GetEventHandle"}, | 234 | {0, &ICommonStateGetter::GetEventHandle, "GetEventHandle"}, |
| 208 | {1, &ICommonStateGetter::ReceiveMessage, "ReceiveMessage"}, | 235 | {1, &ICommonStateGetter::ReceiveMessage, "ReceiveMessage"}, |
| 236 | {2, nullptr, "GetThisAppletKind"}, | ||
| 237 | {3, nullptr, "AllowToEnterSleep"}, | ||
| 238 | {4, nullptr, "DisallowToEnterSleep"}, | ||
| 209 | {5, &ICommonStateGetter::GetOperationMode, "GetOperationMode"}, | 239 | {5, &ICommonStateGetter::GetOperationMode, "GetOperationMode"}, |
| 210 | {6, &ICommonStateGetter::GetPerformanceMode, "GetPerformanceMode"}, | 240 | {6, &ICommonStateGetter::GetPerformanceMode, "GetPerformanceMode"}, |
| 241 | {7, nullptr, "GetCradleStatus"}, | ||
| 242 | {8, nullptr, "GetBootMode"}, | ||
| 211 | {9, &ICommonStateGetter::GetCurrentFocusState, "GetCurrentFocusState"}, | 243 | {9, &ICommonStateGetter::GetCurrentFocusState, "GetCurrentFocusState"}, |
| 244 | {10, nullptr, "RequestToAcquireSleepLock"}, | ||
| 245 | {11, nullptr, "ReleaseSleepLock"}, | ||
| 246 | {12, nullptr, "ReleaseSleepLockTransiently"}, | ||
| 247 | {13, nullptr, "GetAcquiredSleepLockEvent"}, | ||
| 248 | {20, nullptr, "PushToGeneralChannel"}, | ||
| 249 | {30, nullptr, "GetHomeButtonReaderLockAccessor"}, | ||
| 250 | {31, nullptr, "GetReaderLockAccessorEx"}, | ||
| 251 | {40, nullptr, "GetCradleFwVersion"}, | ||
| 252 | {50, nullptr, "IsVrModeEnabled"}, | ||
| 253 | {51, nullptr, "SetVrModeEnabled"}, | ||
| 254 | {52, nullptr, "SwitchLcdBacklight"}, | ||
| 255 | {55, nullptr, "IsInControllerFirmwareUpdateSection"}, | ||
| 256 | {60, nullptr, "GetDefaultDisplayResolution"}, | ||
| 257 | {61, nullptr, "GetDefaultDisplayResolutionChangeEvent"}, | ||
| 258 | {62, nullptr, "GetHdcpAuthenticationState"}, | ||
| 259 | {63, nullptr, "GetHdcpAuthenticationStateChangeEvent"}, | ||
| 212 | }; | 260 | }; |
| 213 | RegisterHandlers(functions); | 261 | RegisterHandlers(functions); |
| 214 | 262 | ||
| @@ -278,7 +326,7 @@ public: | |||
| 278 | {104, nullptr, "PopInteractiveOutData"}, | 326 | {104, nullptr, "PopInteractiveOutData"}, |
| 279 | {105, nullptr, "GetPopOutDataEvent"}, | 327 | {105, nullptr, "GetPopOutDataEvent"}, |
| 280 | {106, nullptr, "GetPopInteractiveOutDataEvent"}, | 328 | {106, nullptr, "GetPopInteractiveOutDataEvent"}, |
| 281 | {120, nullptr, "NeedsToExitProcess"}, | 329 | {110, nullptr, "NeedsToExitProcess"}, |
| 282 | {120, nullptr, "GetLibraryAppletInfo"}, | 330 | {120, nullptr, "GetLibraryAppletInfo"}, |
| 283 | {150, nullptr, "RequestForAppletToGetForeground"}, | 331 | {150, nullptr, "RequestForAppletToGetForeground"}, |
| 284 | {160, nullptr, "GetIndirectLayerConsumerHandle"}, | 332 | {160, nullptr, "GetIndirectLayerConsumerHandle"}, |
| @@ -330,6 +378,7 @@ public: | |||
| 330 | : ServiceFramework("IStorageAccessor"), buffer(std::move(buffer)) { | 378 | : ServiceFramework("IStorageAccessor"), buffer(std::move(buffer)) { |
| 331 | static const FunctionInfo functions[] = { | 379 | static const FunctionInfo functions[] = { |
| 332 | {0, &IStorageAccessor::GetSize, "GetSize"}, | 380 | {0, &IStorageAccessor::GetSize, "GetSize"}, |
| 381 | {10, nullptr, "Write"}, | ||
| 333 | {11, &IStorageAccessor::Read, "Read"}, | 382 | {11, &IStorageAccessor::Read, "Read"}, |
| 334 | }; | 383 | }; |
| 335 | RegisterHandlers(functions); | 384 | RegisterHandlers(functions); |
| @@ -372,6 +421,7 @@ public: | |||
| 372 | : ServiceFramework("IStorage"), buffer(std::move(buffer)) { | 421 | : ServiceFramework("IStorage"), buffer(std::move(buffer)) { |
| 373 | static const FunctionInfo functions[] = { | 422 | static const FunctionInfo functions[] = { |
| 374 | {0, &IStorage::Open, "Open"}, | 423 | {0, &IStorage::Open, "Open"}, |
| 424 | {1, nullptr, "OpenTransferStorage"}, | ||
| 375 | }; | 425 | }; |
| 376 | RegisterHandlers(functions); | 426 | RegisterHandlers(functions); |
| 377 | } | 427 | } |
| @@ -392,12 +442,42 @@ private: | |||
| 392 | IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { | 442 | IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { |
| 393 | static const FunctionInfo functions[] = { | 443 | static const FunctionInfo functions[] = { |
| 394 | {1, &IApplicationFunctions::PopLaunchParameter, "PopLaunchParameter"}, | 444 | {1, &IApplicationFunctions::PopLaunchParameter, "PopLaunchParameter"}, |
| 445 | {10, nullptr, "CreateApplicationAndPushAndRequestToStart"}, | ||
| 446 | {11, nullptr, "CreateApplicationAndPushAndRequestToStartForQuest"}, | ||
| 447 | {12, nullptr, "CreateApplicationAndRequestToStart"}, | ||
| 448 | {13, nullptr, "CreateApplicationAndRequestToStartForQuest"}, | ||
| 395 | {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"}, | 449 | {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"}, |
| 396 | {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"}, | 450 | {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"}, |
| 397 | {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, | 451 | {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, |
| 452 | {23, nullptr, "GetDisplayVersion"}, | ||
| 453 | {24, nullptr, "GetLaunchStorageInfoForDebug"}, | ||
| 454 | {25, nullptr, "ExtendSaveData"}, | ||
| 455 | {26, nullptr, "GetSaveDataSize"}, | ||
| 456 | {30, nullptr, "BeginBlockingHomeButtonShortAndLongPressed"}, | ||
| 457 | {31, nullptr, "EndBlockingHomeButtonShortAndLongPressed"}, | ||
| 458 | {32, nullptr, "BeginBlockingHomeButton"}, | ||
| 459 | {33, nullptr, "EndBlockingHomeButton"}, | ||
| 460 | {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"}, | ||
| 461 | {50, nullptr, "GetPseudoDeviceId"}, | ||
| 462 | {60, nullptr, "SetMediaPlaybackStateForApplication"}, | ||
| 463 | {65, nullptr, "IsGamePlayRecordingSupported"}, | ||
| 398 | {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, | 464 | {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, |
| 399 | {67, &IApplicationFunctions::SetGamePlayRecordingState, "SetGamePlayRecordingState"}, | 465 | {67, &IApplicationFunctions::SetGamePlayRecordingState, "SetGamePlayRecordingState"}, |
| 400 | {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"}, | 466 | {68, nullptr, "RequestFlushGamePlayingMovieForDebug"}, |
| 467 | {70, nullptr, "RequestToShutdown"}, | ||
| 468 | {71, nullptr, "RequestToReboot"}, | ||
| 469 | {80, nullptr, "ExitAndRequestToShowThanksMessage"}, | ||
| 470 | {90, nullptr, "EnableApplicationCrashReport"}, | ||
| 471 | {100, nullptr, "InitializeApplicationCopyrightFrameBuffer"}, | ||
| 472 | {101, nullptr, "SetApplicationCopyrightImage"}, | ||
| 473 | {102, nullptr, "SetApplicationCopyrightVisibility"}, | ||
| 474 | {110, nullptr, "QueryApplicationPlayStatistics"}, | ||
| 475 | {120, nullptr, "ExecuteProgram"}, | ||
| 476 | {121, nullptr, "ClearUserChannel"}, | ||
| 477 | {122, nullptr, "UnpopToUserChannel"}, | ||
| 478 | {500, nullptr, "StartContinuousRecordingFlushForDebug"}, | ||
| 479 | {1000, nullptr, "CreateMovieMaker"}, | ||
| 480 | {1001, nullptr, "PrepareForJit"}, | ||
| 401 | }; | 481 | }; |
| 402 | RegisterHandlers(functions); | 482 | RegisterHandlers(functions); |
| 403 | } | 483 | } |