ExeFS: Difference between revisions

Neobrain (talk | contribs)
Neobrain (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Overview ===
ExeFS or Executable Filesystem contains information related to the executable program, and is the part of the [[NCCH#CXI|CXI]] format.  
ExeFS or Executable Filesystem contains information related to the executable program, and is the part of the [[NCCH#CXI|CXI]] format.  


The ExeFS usually contains one or more of the following files:
The ExeFS usually contains one or more of the following files:
* .code Contains the code binary, which can be optionally reverse-LZSS compressed via an exheader flag.
* .code Contains the code binary, which can be optionally reverse-LZSS compressed via an exheader flag.
* [[logo|.logo]] Contains distribution licensing Binary data.
* [[logo|logo]] Contains distribution licensing Binary data.
* [[File Formats|.banner]] Contains the banner which homemenu uses for this CXI.
* [[File Formats|banner]] Contains the banner which homemenu uses for this CXI.
* [[SMDH|.icon]] Contains the icon which homemenu displays for this CXI.
* [[SMDH|icon]] Contains the icon which homemenu displays for this CXI.


=== Format ===
=== Format ===
Line 14: Line 13:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
START
Start
SIZE
Size
DESCRIPTION
Description
|-
|-
|  0x00
|  0x00
Line 34: Line 33:


==== File headers ====
==== File headers ====
There are a maximum of 10* file headers in the ExeFS format, which have the following structure:
There are a maximum of 10 file headers in the ExeFS format. (This maximum number of file headers is disputable, with makerom indicating a maximum of 8 sections and makecia indicating a maximum of 10. From a non-SDK point of view, the ExeFS header format can hold no more than 10 file headers within the currently define size of 0x200 bytes.) The file headers have the following structure:


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
START
Start
SIZE
Size
DESCRIPTION
Description
|-
|-
|  0x0
|  0x0
Line 54: Line 53:
|  File size
|  File size
|}
|}
<nowiki>*</nowiki> The maximum number of ExeFS file headers, is disputable. With makerom indicating a maximum of 8 sections, and makecia indicating a maximum of 10. From a non-SDK point of view ExeFS header format can hold no more than 10 file headers within the currently define size of 0x200 bytes.


File offsets are non-inclusive of the header's size (0x200 bytes). Also, file headers which are not used are filled with all zeros.
File offsets are non-inclusive of the header's size (0x200 bytes). Also, file headers which are not used are filled with all zeros.