From: Christos Zoulas Date: Thu, 21 Jun 2012 01:32:26 +0000 (+0000) Subject: improve z-machines magic X-Git-Tag: FILE5_12~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ac2641e30c0e772e03d4964941b33e78957a8e3;p=file improve z-machines magic --- diff --git a/magic/Magdir/adventure b/magic/Magdir/adventure index 6ee89900..131eeac6 100644 --- a/magic/Magdir/adventure +++ b/magic/Magdir/adventure @@ -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 @@ -33,10 +33,14 @@ # 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.