Template:RCO TOC entry common area: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{| class="wikitable" style="font-size:small;"
{| class="wikitable" style="font-size:small;"
|+RCO TOC entry common area {{ed right|RCO TOC entry common area}}
|+RCO TOC entry common area {{ed right|RCO TOC entry common area}}
! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes
! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes
|-
|-
</noinclude>| 0x00 || 0x04 || integer || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 01 00 00}}} || rowspan="2" | {{{4|<MainTree <span style="color:#000099;">name</span><span style="color:#990000;">="label"</span>>}}} || First and second byte indicates the entry type
</noinclude>| 0x00 || 0x04 || int || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 01 00 00}}} || rowspan="2" | {{{4|<MainTree <span style="color:#000099;">name</span><span style="color:#990000;">="label"</span>>}}} || First and second byte indicates the entry type
|-
|-
| 0x04 || 0x04 || integer || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || Offset to the label (relative to the label table).  0xFFFFFFFF means the label doesn't exist for this entry
| 0x04 || 0x04 || int || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || Offset to the label (relative to the label table).  0xFFFFFFFF means the label doesn't exist for this entry
|-
|-
| 0x08 || 0x04 || integer || '''entry_header_size''' || {{yes}} || {{yes}} || 00 00 00 28 || {{cellcolors|lightgrey}} n/a || sizeof(RCOEntry) = 0x28 [ only used for entries with extra info (ie not "main" entries) ]
| 0x08 || 0x04 || int || '''entry_header_size''' || {{yes}} || {{yes}} || 00 00 00 28 || {{cellcolors|lightgrey}} n/a || sizeof(RCOEntry) = 0x28 [ only used for entries with extra info (ie not "main" entries) ]
|-
|-
| 0x0C || 0x04 || integer || '''entry_size''' || {{yes}} || {{yes}} || {{{3|00 00 00 00}}} || {{cellcolors|lightgrey}} n/a || main tables (main/img etc) uses 0x28 here, or is this the length of current entry (not including subentries)?
| 0x0C || 0x04 || int || '''entry_size''' || {{yes}} || {{yes}} || {{{3|00 00 00 00}}} || {{cellcolors|lightgrey}} n/a || main tables (main/img etc) uses 0x28 here, or is this the length of current entry (not including subentries)?
|-
|-
| 0x10 || 0x04 || integer || '''children_number''' || {{yes}} || {{yes}} || 00 00 00 00 || {{cellcolors|lightgrey}} n/a ||  
| 0x10 || 0x04 || int || '''children_number''' || {{yes}} || {{yes}} || 00 00 00 00 || {{cellcolors|lightgrey}} n/a ||  
|-
|-
| 0x14 || 0x04 || integer || '''next_brother_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || {{cellcolors|lightgrey}} n/a ||  
| 0x14 || 0x04 || int || '''next_brother_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || {{cellcolors|lightgrey}} n/a ||  
|-
|-
| 0x18 || 0x04 || integer || '''prev_brother_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || {{cellcolors|lightgrey}} n/a || this is usually 0x0 however (does make writing RCOs easier though :P I guess Sony's tools do something similar...)
| 0x18 || 0x04 || int || '''prev_brother_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || {{cellcolors|lightgrey}} n/a || this is usually 0x0 however (does make writing RCOs easier though :P I guess Sony's tools do something similar...)
|-
|-
| 0x1C || 0x04 || integer || '''parent_offset''' || {{yes}} || {{yes}} || 00 00 00 28 || {{cellcolors|lightgrey}} n/a || entry offset relative to parent start offset
| 0x1C || 0x04 || int || '''parent_offset''' || {{yes}} || {{yes}} || 00 00 00 28 || {{cellcolors|lightgrey}} n/a || entry offset relative to parent start offset
|-
|-
| 0x20 || 0x04 || unk || {{cellcolors|#ff9999}} ''toc_entry_unknown1'' || {{yes}} || {{yes}} || <abbr title="Always seems to be 0x00000000">00 00 00 00</abbr> || {{cellcolors|lightgrey}} n/a ||  
| 0x20 || 0x04 || unk || {{cellcolors|#ff9999}} ''toc_entry_unknown1'' || {{yes}} || {{yes}} || <abbr title="Always seems to be 0x00000000">00 00 00 00</abbr> || {{cellcolors|lightgrey}} n/a ||  

Revision as of 00:47, 14 October 2016

RCO TOC entry common area
Offset Length Type Name PSP icon PS3 icon Example (TOC) Example (XML) Notes
0x00 0x04 int entry_type Yes Yes 01 01 00 00 <MainTree name="label"> First and second byte indicates the entry type
0x04 0x04 int entry_label_offset Yes Yes 00 00 00 00 Offset to the label (relative to the label table). 0xFFFFFFFF means the label doesn't exist for this entry
0x08 0x04 int entry_header_size Yes Yes 00 00 00 28 n/a sizeof(RCOEntry) = 0x28 [ only used for entries with extra info (ie not "main" entries) ]
0x0C 0x04 int entry_size Yes Yes 00 00 00 00 n/a main tables (main/img etc) uses 0x28 here, or is this the length of current entry (not including subentries)?
0x10 0x04 int children_number Yes Yes 00 00 00 00 n/a
0x14 0x04 int next_brother_offset Yes Yes 00 00 00 00 n/a
0x18 0x04 int prev_brother_offset Yes Yes 00 00 00 00 n/a this is usually 0x0 however (does make writing RCOs easier though :P I guess Sony's tools do something similar...)
0x1C 0x04 int parent_offset Yes Yes 00 00 00 28 n/a entry offset relative to parent start offset
0x20 0x04 unk toc_entry_unknown1 Yes Yes 00 00 00 00 n/a
0x24 0x04 unk toc_entry_unknown2 Yes Yes 00 00 00 00 n/a