[File] [PATCH] Add magic for Nintendo Switch files
Benjamin Lowry
ben at ben.gmbh
Tue Feb 25 02:13:46 UTC 2020
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
More information about the File
mailing list