]> 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 6ee899006eb400cbd2e531d859a0345c7d4cab82..131eeac691f6f33c6982b8bbf19f37389950894a 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: adventure,v 1.12 2010/09/20 18:55:20 rrt Exp $
+# $File: adventure,v 1.13 2010/12/31 16:32:54 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.