]> granicus.if.org Git - file/commitdiff
improve z-machines magic
authorChristos Zoulas <christos@zoulas.com>
Thu, 21 Jun 2012 01:32:26 +0000 (01:32 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 21 Jun 2012 01:32:26 +0000 (01:32 +0000)
magic/Magdir/adventure

index febc2077f1292d8c3bc5c199f5f84e271396bbea..37b4cb3de2e099332277de7f2884f44df03e8ac7 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: adventure,v 1.13 2010/12/31 16:32:54 christos Exp $
+# $File: adventure,v 1.14 2012/06/21 01:32:26 christos Exp $
 # adventure: file(1) magic for Adventure game files
 #
 # from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
 #
 0      ubyte                   >0
 >0     ubyte                   <9
->>16   belong&0xfe00f0f0       0x3030  Infocom game data
->>>0   ubyte                   x       (Z-machine %d,
->>>>2  ubeshort                x       Release %d /
->>>>18 string                  >\0     Serial %.6s)
+>>16   belong&0xfe00f0f0       0x3030
+>>>0   ubyte                   < 10
+>>>>2  ubeshort                < 10
+>>>>>18        regex                   [0-9][0-9][0-9][0-9][0-9][0-9]
+>>>>>>0        ubyte                   < 10    Infocom (Z-machine %d,
+>>>>>>>2       ubeshort        < 10    Release %d /
+>>>>>>>>18     string          >\0     Serial %.6s)
+!:strength + 40
 
 #------------------------------------------------------------------------------
 # Glulx:  file(1) magic for Glulx binaries.