Capture services: Difference between revisions

Behemoth (talk | contribs)
Document Album-Result Debug Function
No edit summary
 
(4 intermediate revisions by 2 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 105: Line 127:
|-
|-
| 50012 || [19.0.0+] [[#SetAlbumAccessResultForDebug]]
| 50012 || [19.0.0+] [[#SetAlbumAccessResultForDebug]]
|-
| 50021 || [20.0.0+]
|-
| 50022 || [20.0.0+]
|-
| 50023 || [20.0.0+]
|-
| 50024 || [20.0.0+]
|-
| 50031 || [20.0.0+]
|-
| 50032 || [20.0.0+]
|-
|-
| 60002 || [4.0.0+] [[#OpenAccessorSession]]
| 60002 || [4.0.0+] [[#OpenAccessorSession]]
Line 119: Line 153:


== SetAlbumAccessResultForDebug ==
== SetAlbumAccessResultForDebug ==
Allows setting a result code that will make following access functions fail:  
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  
GetAlbumFileCount, GetAlbumFileCountEx0, GetAlbumFileList, GetAlbumFileListEx0, GetAlbumFileListEx1, GetAlbumFileListEx2, LoadAlbumFile, DeleteAlbumFile, StorageCopyAlbumFile, LoadAlbumFileThumbnail, LoadAlbumScreenShotImage, LoadAlbumScreenShotImageEx, LoadAlbumScreenShotImageEx0, LoadAlbumScreenShotImageEx1, LoadAlbumScreenShotThumbnailImage, LoadAlbumScreenShotThumbnailImageEx, LoadAlbumScreenShotThumbnailImageEx0, LoadAlbumScreenShotThumbnailImageEx1, OpenAlbumMovieReadStream  
The raw can be read by caps:c 2501 and caps:a 50011.
The raw code can be read by caps:c 2501 and caps:a 50011, which themselves return the result code 0.


== OpenAccessorSession ==
== OpenAccessorSession ==
Line 181: 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 199: 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 216: 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 283: Line 343:
|-
|-
| 2434 || SetAlbumMovieWriteStreamDataSize  
| 2434 || SetAlbumMovieWriteStreamDataSize  
|-
| 2436 || [20.0.0+]
|-
|-
| 5000 || [18.0.0+]
| 5000 || [18.0.0+]
Line 555: 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 =