Capture services: Difference between revisions

No edit summary
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 45: Line 45:
|-
|-
| 19 || [11.0.0+] [[#GetAlbumFileName]]
| 19 || [11.0.0+] [[#GetAlbumFileName]]
|-
| 20 || [20.0.0+]
|-
|-
| 100 || [5.0.0+] GetAlbumFileCountEx0
| 100 || [5.0.0+] GetAlbumFileCountEx0
Line 53: Line 55:
|-
|-
| 120 || [17.0.0+] GetAlbumFileListEx2
| 120 || [17.0.0+] GetAlbumFileListEx2
|-
| 121 || [20.0.0+]
|-
| 122 || [20.0.0+]
|-
| 123 || [20.0.0+]
|-
|-
| 130 || [17.0.0+] LoadAlbumFileRawData
| 130 || [17.0.0+] LoadAlbumFileRawData
Line 65: Line 73:
|-
|-
| 160 || [18.0.0+]
| 160 || [18.0.0+]
|-
| 170 || [20.0.0+]
|-
| 171 || [20.0.0+]
|-
| 172 || [20.0.0+]
|-
|-
| 202 || [1.0.0-2.3.0] SaveEditedScreenShot
| 202 || [1.0.0-2.3.0] SaveEditedScreenShot
Line 75: Line 89:
|-
|-
| 501 || GetRequiredStorageSpaceSizeToCopyAll
| 501 || GetRequiredStorageSpaceSizeToCopyAll
|-
| 502 || [20.0.0+]
|-
| 600 || [20.0.0+]
|-
|-
| 1001 || [3.0.0+] LoadAlbumScreenShotThumbnailImageEx0
| 1001 || [3.0.0+] LoadAlbumScreenShotThumbnailImageEx0
Line 95: Line 113:
|-
|-
| 8022 || [19.0.0+]  
| 8022 || [19.0.0+]  
|-
| 8031 || [20.0.0+]
|-
| 8032 || [20.0.0+]
|-
|-
| 10011 || SetInternalErrorConversionEnabled
| 10011 || SetInternalErrorConversionEnabled
Line 102: Line 124:
| 50001 || [19.0.0+]  
| 50001 || [19.0.0+]  
|-
|-
| 50011 || [19.0.0+]  
| 50011 || [19.0.0+] GetAlbumAccessResultForDebug
|-
| 50012 || [19.0.0+] [[#SetAlbumAccessResultForDebug]]
|-
| 50021 || [20.0.0+]
|-
| 50022 || [20.0.0+]
|-
| 50023 || [20.0.0+]
|-
| 50024 || [20.0.0+]
|-
|-
| 50012 || [19.0.0+]  
| 50031 || [20.0.0+]
|-
| 50032 || [20.0.0+]
|-
|-
| 60002 || [4.0.0+] [[#OpenAccessorSession]]
| 60002 || [4.0.0+] [[#OpenAccessorSession]]
Line 117: Line 151:
== LoadAlbumScreenShotImageEx1 ==
== LoadAlbumScreenShotImageEx1 ==
Takes a total of 0x38-bytes of input, two type-0x5 input buffers, and returns 0x20-bytes of output. [4.0.0+] No longer returns output, and now takes the following buffers instead: type-0x16, type-0x46, and type-0x6.
Takes a total of 0x38-bytes of input, two type-0x5 input buffers, and returns 0x20-bytes of output. [4.0.0+] No longer returns output, and now takes the following buffers instead: type-0x16, type-0x46, and type-0x6.
== SetAlbumAccessResultForDebug ==
Allows setting a result code that will make following access functions fail with:
GetAlbumFileCount, GetAlbumFileCountEx0, GetAlbumFileList, GetAlbumFileListEx0, GetAlbumFileListEx1, GetAlbumFileListEx2, LoadAlbumFile, DeleteAlbumFile, StorageCopyAlbumFile, LoadAlbumFileThumbnail, LoadAlbumScreenShotImage, LoadAlbumScreenShotImageEx, LoadAlbumScreenShotImageEx0, LoadAlbumScreenShotImageEx1, LoadAlbumScreenShotThumbnailImage, LoadAlbumScreenShotThumbnailImageEx, LoadAlbumScreenShotThumbnailImageEx0, LoadAlbumScreenShotThumbnailImageEx1, OpenAlbumMovieReadStream
The raw code can be read by caps:c 2501 and caps:a 50011, which themselves return the result code 0.


== OpenAccessorSession ==
== OpenAccessorSession ==
Line 176: Line 215:
| 2002 || NotifyAlbumStorageIsUnavailable
| 2002 || NotifyAlbumStorageIsUnavailable
|-
|-
| 2011 || [2.0.0+] RegisterAppletResourceUserId
| 2011 || [2.0.0+] [[#RegisterAppletResourceUserId]]
|-
|-
| 2012 || [2.0.0+] UnregisterAppletResourceUserId
| 2012 || [2.0.0+] [[#UnregisterAppletResourceUserId]]
|-
|-
| 2013 || [2.0.0+] GetApplicationIdFromAruid
| 2013 || [2.0.0+] [[#GetApplicationIdFromAruid]]
|-
|-
| 2014 || [2.0.0+] CheckApplicationIdRegistered
| 2014 || [2.0.0+] CheckApplicationIdRegistered
|-
| 2015 || [20.0.0+]
|-
| 2016 || [20.0.0+]
|-
|-
| 2101 || [2.0.0+] [[#GenerateCurrentAlbumFileId]]
| 2101 || [2.0.0+] [[#GenerateCurrentAlbumFileId]]
Line 194: Line 237:
| 2201 || [2.0.0-3.0.2] SaveAlbumScreenShotFile
| 2201 || [2.0.0-3.0.2] SaveAlbumScreenShotFile
|-
|-
| 2202 || [4.0.0+] SaveAlbumScreenShotFileEx
| 2202 || [4.0.0+] [[#SaveAlbumScreenShotFileEx|SaveAlbumScreenShotFileEx]]
|-
|-
| 2301 || [2.0.0+] SetOverlayScreenShotThumbnailData
| 2301 || [2.0.0+] SetOverlayScreenShotThumbnailData
Line 202: Line 245:
| 2401 || [19.0.0+]
| 2401 || [19.0.0+]
|-
|-
| 2501 || [19.0.0+]
| 2501 || [19.0.0+] GetAlbumAccessResultForDebug
|-
|-
| 60001 || [4.0.0+] [[#OpenControlSession]]
| 60001 || [4.0.0+] [[#OpenControlSession]]
Line 211: Line 254:


This is used by [[Applet_Manager_services|caps:su]] SetShimLibraryVersion.
This is used by [[Applet_Manager_services|caps:su]] SetShimLibraryVersion.
=== RegisterAppletResourceUserId ===
Takes an input u64 and an u64. No output.
[19.0.0+] The second u64 is now a 0x10-byte struct.
=== UnregisterAppletResourceUserId ===
Takes an input u64 and an u64. No output.
[19.0.0+] The second u64 is now a 0x10-byte struct.
The struct is ignored.
=== GetApplicationIdFromAruid ===
Takes a total of 8-bytes of input. Returns an u64.
[19.0.0+] The output u64 is now a 0x10-byte struct.


=== GenerateCurrentAlbumFileId ===
=== GenerateCurrentAlbumFileId ===
Takes an input u8 and u64, returns a 0x18-byte struct.
Takes an input u8 and an u64, returns a 0x18-byte struct.
 
[19.0.0+] The input u64 is now a 0x10-byte struct.
 
=== SaveAlbumScreenShotFileEx ===
[20.0.0+] Now takes a total of 0x70-bytes of input instead of 0x30-bytes.


=== OpenControlSession ===
=== OpenControlSession ===
Line 278: Line 343:
|-
|-
| 2434 || SetAlbumMovieWriteStreamDataSize  
| 2434 || SetAlbumMovieWriteStreamDataSize  
|-
| 2436 || [20.0.0+]
|-
|-
| 5000 || [18.0.0+]
| 5000 || [18.0.0+]
Line 458: Line 525:
|}
|}


=== AlbumReportOption ===
= AlbumReportOption =
This is "nn::album::AlbumReportOption".
This is "nn::album::AlbumReportOption".


Line 471: Line 538:
|}
|}


=== AlbumFileContents ===
= AlbumFileContents =
This is "nn::capsrv::AlbumFileContents".
This is "nn::capsrv::AlbumFileContents".


Line 486: Line 553:
|}
|}


=== AlbumStorage ===
= AlbumStorage =
This is "nn::capsrv::AlbumStorage".
This is "nn::capsrv::AlbumStorage".


Line 550: Line 617:
| 0x11 || 0x1 || [[#AlbumFileContents|Contents]]
| 0x11 || 0x1 || [[#AlbumFileContents|Contents]]
|-
|-
| 0x12 || 0x6 || Reserved
| 0x12 || 0x1 || [19.0.0+]
|-
| 0x13 || 0x1 || [19.0.0+]
|-
| 0x14 || 0x4 || Reserved
|}
|}
[19.0.0+] [[#GenerateCurrentAlbumFileId|GenerateCurrentAlbumFileId]] copies the two u8s from instruct+0x8 to AlbumFileId+0x12.


= AlbumFileEntry =
= AlbumFileEntry =