BOSS Services: Difference between revisions

DaniElectra (talk | contribs)
m CfgInfoType: Format update
DaniElectra (talk | contribs)
 
(2 intermediate revisions by the same user not shown)
Line 514: Line 514:


==NsDataHeaderInfo==
==NsDataHeaderInfo==
When the input type is not one of the below or when the specified output size doesn't match the expected size for this type, an error is returned.
This type contains information about an NsData, the fields match exactly with the [[SpotPass#Payload_Content_Header|Payload Content Header]] without the hash and signature. When the input type is not one of the below or when the specified output size doesn't match the expected size for this type, an error is returned.
 
===Type0===
Total size is 0x8-bytes.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Type !! Size !! Description
|-
|-
!  Offset
| 0x0 || 0x8 || Program ID
!  Size
!  Description
|-
|-
| 0x0
| 0x1 || 0x4 || Unknown field
| 0x8
| programID
|}
 
===Type1===
Total size is 0x4-bytes.
 
{| class="wikitable" border="1"
|-
|-
!  Offset
| 0x2 || 0x4 || Content datatype
!  Size
!  Description
|-
|-
| 0x0
| 0x3 || 0x4 || Payload size
| 0x4
| ?
|}
 
===Type2===
Total size is 0x4-bytes.
 
{| class="wikitable" border="1"
|-
|-
!  Offset
| 0x4 || 0x4 || NS Data ID
!  Size
!  Description
|-
|-
| 0x0
| 0x5 || 0x4 || Version
| 0x4
| Content data-type, originally from the [[SpotPass|BOSS-container]].
|}
 
===Type3===
Total size is 0x4-bytes.
 
{| class="wikitable" border="1"
|-
|-
!  Offset
| 0x6 || 0x20 || Everything:
!  Size
!  Description
|-
| 0x0
| 0x4
| Content size
|}
 
===Type4===
Total size is 0x4-bytes.
 
{| class="wikitable" border="1"
|-
!  Offset
!  Size
!  Description
|-
| 0x0
| 0x4
| ?
|}
 
===Type5===
Total size is 0x4-bytes.
 
{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Offset !! Size !! Description
|-
|-
!  Offset
| 0x0 || 0x8 || Program ID
!  Size
!  Description
|-
|-
| 0x0
| 0x8 || 0x4 || Unknown field
| 0x4
| ?
|}
 
===Type6===
Total size is 0x20-bytes.
 
{| class="wikitable" border="1"
|-
|-
!  Offset
| 0xC || 0x4 || Content datatype
!  Size
!  Description
|-
|-
| 0x0
| 0x10 || 0x4 || Payload size
| 0x8
| programID. Same data as Type0.
|-
|-
| 0x8
| 0x14 || 0x4 || NS Data ID
| 0x4
| Same data as Type1.
|-
|-
| 0xC
| 0x18 || 0x4 || Version
| 0x4
| ?
|-
|-
| 0x10
| 0x1C || 0x4 || Padding?
| 0x4
|}
| Same data as Type3.
|-
| 0x14
| 0xC
| ?
|}
|}


Line 700: Line 621:
| 0x1C || 0x4 ||  || Yes || Yes || No || ?
| 0x1C || 0x4 ||  || Yes || Yes || No || ?
|-
|-
| 0x1D || 0x1 || u8 || Yes || No || No || [[#TaskStateCode|TaskStateCode]]. Unknown purpose
| 0x1D || 0x1 || u8 || Yes || No || No || [[#TaskStateCode|TaskStateCode]]
|-
|-
| 0x1E || 0x1 ||  || Yes || No || No || ?
| 0x1E || 0x1 ||  || Yes || No || No || ?
Line 712: Line 633:
| 0x22 || 0x1 ||  || Yes || No || No || ?
| 0x22 || 0x1 ||  || Yes || No || No || ?
|-
|-
| 0x23 || 0x4 || u32 || Yes || No || No || CommErrorCode. Unknown purpose
| 0x23 || 0x4 || u32 || Yes || No || No || CommErrorCode. Received HTTP status code when performing the task. Set to 0 for successful codes
|-
|-
| 0x24 || 0x1 ||  || Yes || No || No || ?
| 0x24 || 0x1 ||  || Yes || No || No || ?
Line 899: Line 820:


==CfgInfoType==
==CfgInfoType==
{| class="wikitable sortable"
{| class="wikitable" border="1"
! Flag !! Description
! Flag !! Description
|-
|-