pyctr.type.exefs module
Module for interacting with Executable Filesystem (ExeFS) files.
- exception pyctr.type.exefs.ExeFSError[source]
Bases:
PyCTRErrorGeneric exception for ExeFS operations.
- exception pyctr.type.exefs.ExeFSFileNotFoundError[source]
Bases:
ExeFSErrorFile not found in the ExeFS.
- exception pyctr.type.exefs.InvalidExeFSError[source]
Bases:
ExeFSErrorInvalid ExeFS header.
- exception pyctr.type.exefs.ExeFSNameError[source]
Bases:
InvalidExeFSErrorName could not be decoded, likely making the file not a valid ExeFS.
- exception pyctr.type.exefs.BadOffsetError[source]
Bases:
InvalidExeFSErrorOffset is not a multiple of 0x200. This kind of ExeFS will not work on a 3DS.
- exception pyctr.type.exefs.CodeDecompressionError[source]
Bases:
ExeFSErrorException when attempting to decompress ExeFS .code.
- class pyctr.type.exefs.ExeFSReader(fp, *, closefd=True, _load_icon=True)[source]
Bases:
TypeReaderBaseReads the contents of the ExeFS, found inside NCCH containers.
The contents typically include
.code,icon, andbanner. For titles released before System Menu 5.0.0-11,logocan also one of the contents, otherwise logo has a dedicated NCCH section.The other notable use of an ExeFS is GodMode9’s essentials backup, which can include the files
frndseed,hwcal0,hwcal1,movable,nand_cid,nand_hdr,otp, andsecinfo..codecan sometimes be compressed which is indicated in the NCCH Extended Header. When decompressed, a new entry called.code-decompressedis added.If
iconis found, it is loaded into anSMDHobject.- Parameters: