Imported Upstream version 5.32
[platform/upstream/file.git] / magic / Magdir / console
index 0d98a7a..66f5dbd 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: console,v 1.30 2017/03/17 21:35:28 christos Exp $
+# $File: console,v 1.32 2017/08/13 00:21:47 christos Exp $
 # Console game magic
 # Toby Deshane <hac@shoelace.digivill.net>
 
 >0x1E  byte    x               \b, Rev.%02u)
 >0x12  byte    2               (DSi enhanced)
 >0x12  byte    3               (DSi only)
+# Secure Area check.
+>0x20          lelong  <0x4000         (homebrew)
+>0x20          lelong  >0x3FFF
+>>0x4000       lequad  0x0000000000000000      (multiboot)
+>>0x4000       lequad  !0x0000000000000000
+>>>0x4000      lequad  0xE7FFDEFFE7FFDEFF      (decrypted)
+>>>0x4000      lequad  !0xE7FFDEFFE7FFDEFF
+>>>>0x1000     lequad  0x0000000000000000      (encrypted)
+>>>>0x1000     lequad  !0x0000000000000000     (mask ROM)
 
 #------------------------------------------------------------------------------
 # nds_passme: file(1) magic for Nintendo DS ROM images for GBA cartridge boot.
 
 # Type: Nintendo 3DS Homebrew Application.
 # From: David Korth <gerbilsoft@gerbilsoft.com>
-# Refernece: https://3dbrew.org/wiki/3DSX_Format
+# Reference: https://3dbrew.org/wiki/3DSX_Format
 0      string  3DSX    Nintendo 3DS Homebrew Application (3DSX)
 
 #------------------------------------------------------------------------------