Shared Database services: Difference between revisions
No edit summary |
|||
Line 6: | Line 6: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[# | | 0 || [[#RequestLoad]] | ||
|- | |- | ||
| 1 || [[# | | 1 || [[#GetLoadState]] | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#GetSize]] | ||
|- | |- | ||
| 3 || [[# | | 3 || [[#GetSharedMemoryAddressOffset]] | ||
|- | |- | ||
| 4 || [[# | | 4 || [[#GetSharedMemoryNativeHandle]] | ||
|- | |- | ||
| 5 || [[#GetSharedFontInOrderOfPriority]] | | 5 || [[#GetSharedFontInOrderOfPriority]] | ||
Line 22: | Line 22: | ||
| 100 || [8.0.0+] RequestApplicationFunctionAuthorization | | 100 || [8.0.0+] RequestApplicationFunctionAuthorization | ||
|- | |- | ||
| 101 || [8.0.0+] | | 101 || [8.0.0+] RequestApplicationFunctionAuthorizationByProcessId | ||
|- | |- | ||
| 102 || [10.0.0+] | | 102 || [10.0.0+] RequestApplicationFunctionAuthorizationByApplicationId | ||
|- | |- | ||
| 1000 || [9.0.0+] LoadNgWordDataForPlatformRegionChina | | 1000 || [9.0.0+] LoadNgWordDataForPlatformRegionChina | ||
Line 31: | Line 31: | ||
|} | |} | ||
== | == RequestLoad == | ||
Takes a [[#SharedFontType]] (uint32), no output. | Takes a [[#SharedFontType]] (uint32), no output. | ||
== | == GetLoadState == | ||
Takes a [[#SharedFontType]] (uint32), returns the [[#LoadState]] (uint32). | Takes a [[#SharedFontType]] (uint32), returns the [[#LoadState]] (uint32). | ||
Line 47: | Line 47: | ||
|} | |} | ||
== | == GetSize == | ||
Takes a [[#SharedFontType]] (uint32), returns the Font Size (uint32). | Takes a [[#SharedFontType]] (uint32), returns the Font Size (uint32). | ||
== | == GetSharedMemoryAddressOffset == | ||
Takes a [[#SharedFontType]] (uint32), returns the offset (uint32) to the Font Address. | Takes a [[#SharedFontType]] (uint32), returns the offset (uint32) to the Font Address. | ||
== | == GetSharedMemoryNativeHandle == | ||
No input, returns an output SharedMemory handle. | No input, returns an output SharedMemory handle. | ||
Line 294: | Line 294: | ||
| 0 || [[#QueryAppletEvent]] ([1.0.0-7.0.1] QueryApplicationEvent) | | 0 || [[#QueryAppletEvent]] ([1.0.0-7.0.1] QueryApplicationEvent) | ||
|- | |- | ||
| [1.0.0-6.2.0] | | 1 || [1.0.0-6.2.0] [[#QueryPlayStatistics]] | ||
|- | |- | ||
| [1.0.0-6.2.0] | | 2 || [1.0.0-6.2.0] [[#QueryPlayStatisticsByUserAccountId]] | ||
|- | |- | ||
| [1.0.0-6.2.0] | | 3 || [1.0.0-6.2.0] [[#QueryPlayStatisticsByNetworkServiceAccountId]] | ||
|- | |- | ||
| 4 || [[#QueryPlayStatisticsByApplicationId]] | | 4 || [[#QueryPlayStatisticsByApplicationId]] | ||
Line 304: | Line 304: | ||
| 5 || [[#QueryPlayStatisticsByApplicationIdAndUserAccountId]] | | 5 || [[#QueryPlayStatisticsByApplicationIdAndUserAccountId]] | ||
|- | |- | ||
| [1.0.0-6.2.0] | | 6 || [1.0.0-6.2.0] [[#QueryPlayStatisticsByApplicationIdAndNetworkServiceAccountId]] | ||
|- | |- | ||
| 7 || [[# | | 7 || [10.0.0+] [[#QueryLastPlayTimeV0]] ([1.0.0-9.2.0] QueryLastPlayTime) | ||
|- | |- | ||
| 8 || [[#QueryPlayEvent]] | | 8 || [[#QueryPlayEvent]] | ||
Line 318: | Line 318: | ||
| 12 || [4.0.0+] [[#GetAvailableAccountPlayEventRange]] | | 12 || [4.0.0+] [[#GetAvailableAccountPlayEventRange]] | ||
|- | |- | ||
| 13 || [ | | 13 || [10.0.0+] [[#QueryApplicationPlayStatisticsForSystemV0]] ([5.0.0-9.2.0] QueryApplicationPlayStatisticsForSystem) | ||
|- | |- | ||
| 14 || [6.0.0+] [[#QueryRecentlyPlayedApplication]] | | 14 || [6.0.0+] [[#QueryRecentlyPlayedApplication]] | ||
Line 324: | Line 324: | ||
| 15 || [6.0.0+] [[#GetRecentlyPlayedApplicationUpdateEvent]] | | 15 || [6.0.0+] [[#GetRecentlyPlayedApplicationUpdateEvent]] | ||
|- | |- | ||
| 16 || [ | | 16 || [10.0.0+] [[#QueryApplicationPlayStatisticsByUserAccountIdForSystemV0]] ([6.0.0-9.2.0] QueryApplicationPlayStatisticsByUserAccountIdForSystem) | ||
|- | |- | ||
| 17 || [10.0.0+] | | 17 || [10.0.0+] QueryLastPlayTime | ||
|- | |- | ||
| 18 || [10.0.0+] | | 18 || [10.0.0+] QueryApplicationPlayStatisticsForSystem | ||
|- | |- | ||
| 19 || [10.0.0+] | | 19 || [10.0.0+] QueryApplicationPlayStatisticsByUserAccountIdForSystem | ||
|} | |} | ||
Line 368: | Line 368: | ||
[6.2.0+] This command was removed. | [6.2.0+] This command was removed. | ||
== | == QueryLastPlayTimeV0 == | ||
Takes a type-0x6 output buffer containing an array of [[#LastPlayTime]], and a type-0x5 input buffer containing an array of u64 '''ApplicationId'''. Returns an output s32 for actual total output entries. | Takes a type-0x6 output buffer containing an array of [[#LastPlayTime]], and a type-0x5 input buffer containing an array of u64 '''ApplicationId'''. Returns an output s32 for actual total output entries. | ||
Line 386: | Line 386: | ||
Takes an input u128 '''Uid''' and returns 3 output s32s: total_entries, start_entry_index, and end_entry_index. | Takes an input u128 '''Uid''' and returns 3 output s32s: total_entries, start_entry_index, and end_entry_index. | ||
== | == QueryApplicationPlayStatisticsForSystemV0 == | ||
Takes a type-0x6 output buffer containing an array of [[#ApplicationPlayStatistics]] and a type-0x5 input buffer containing an array of u64 '''ApplicationId'''. Returns an output s32 for actual total output entries. | Takes a type-0x6 output buffer containing an array of [[#ApplicationPlayStatistics]] and a type-0x5 input buffer containing an array of u64 '''ApplicationId'''. Returns an output s32 for actual total output entries. | ||
Line 403: | Line 403: | ||
This is signaled when logging a new [[#PlayEvent]] which would be available via [[#QueryAccountEvent]], where [[#PlayEvent]] +0x18 is 0. | This is signaled when logging a new [[#PlayEvent]] which would be available via [[#QueryAccountEvent]], where [[#PlayEvent]] +0x18 is 0. | ||
== | == QueryApplicationPlayStatisticsByUserAccountIdForSystemV0 == | ||
Takes a u128 '''Uid''', a type-0x6 output buffer containing an array of [[#ApplicationPlayStatistics]] and a type-0x5 input buffer containing an array of u64 '''ApplicationId'''. Returns an output s32 for actual total output entries. | Takes a u128 '''Uid''', a type-0x6 output buffer containing an array of [[#ApplicationPlayStatistics]] and a type-0x5 input buffer containing an array of u64 '''ApplicationId'''. Returns an output s32 for actual total output entries. | ||