[File] [PATCH] Add magic for Nintendo Switch files

Christos Zoulas christos at zoulas.com
Tue Feb 25 05:00:05 UTC 2020


Committed, thanks!

christos

> On Feb 24, 2020, at 9:13 PM, Benjamin Lowry <ben at ben.gmbh> wrote:
> 
> Includes support for various Nintendo Switch filetypes (cartridge
> images, filesystems, and executables).
> ---
> magic/Magdir/console | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> 
> diff --git a/magic/Magdir/console b/magic/Magdir/console
> index 28cc3681..69416d90 100644
> --- a/magic/Magdir/console
> +++ b/magic/Magdir/console
> @@ -1015,3 +1015,28 @@
>>>>>>> 0x5B	byte	0x02
>>>>>>>> 0x54	belong	x	Nintendo amiibo NFC dump - amiibo ID: %08X-
>>>>>>>> 0x58	belong	x	\b%08X
> +
> +#------------------------------------------------------------------------------
> +# Type: Nintendo Switch XCI (Game Cartridge Image)
> +# From: Benjamin Lowry <ben at ben.gmbh>
> +# Reference: https://switchbrew.org/wiki/Gamecard_Format
> +0x100		string	HEAD
> +>0x10D		byte	0xFA	Nintendo Switch cartridge image (XCI), 1GB
> +>0x10D		byte	0xF8	Nintendo Switch cartridge image (XCI), 2GB
> +>0x10D		byte	0xF0	Nintendo Switch cartridge image (XCI), 4GB
> +>0x10D		byte	0xE0	Nintendo Switch cartridge image (XCI), 8GB
> +>0x10D		byte	0xE1	Nintendo Switch cartridge image (XCI), 16GB
> +>0x10D		byte	0xE2	Nintendo Switch cartridge image (XCI), 32GB
> +
> +#------------------------------------------------------------------------------
> +# Type: Nintendo Switch Executable
> +# From: Benjamin Lowry <ben at ben.gmbh>
> +# Reference: https://switchbrew.org/wiki/NSO
> +0x00		string	NSO0	Nintendo Switch executable (NSO)
> +
> +#------------------------------------------------------------------------------
> +# Type: Nintendo Switch PFS0
> +# From: Benjamin Lowry <ben at ben.gmbh>
> +# Reference: https://switchbrew.org/wiki/NCA_Format#PFS0
> +0x00		string	PFS0	Nintendo Switch partition filesystem (PFS0)
> +>0x04		ulelong	x	\b, %d files
> --
> 2.24.1
> 
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20200225/cb89f592/attachment.asc>


More information about the File mailing list