31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
diff --git a/magic/Magdir/adventure b/magic/Magdir/adventure
|
|
index 5087ce6..a693213 100644
|
|
--- a/magic/Magdir/adventure
|
|
+++ b/magic/Magdir/adventure
|
|
@@ -18,17 +18,14 @@
|
|
#------------------------------------------------------------------------------
|
|
# Z-machine: file(1) magic for Z-machine binaries.
|
|
#
|
|
-# This will match ${TEX_BASE}/texmf/omega/ocp/char2uni/inbig5.ocp which
|
|
-# appears to be a version-0 Z-machine binary.
|
|
-#
|
|
-# The (false match) message is to correct that behavior. Perhaps it is
|
|
-# not needed.
|
|
-#
|
|
-16 belong&0xfe00f0f0 0x3030 Infocom game data
|
|
->0 ubyte 0 (false match)
|
|
->0 ubyte >0 (Z-machine %d,
|
|
->>2 ubeshort x Release %d /
|
|
->>18 string >\0 Serial %.6s)
|
|
+# The first byte is the Z-machine version number, which is always between
|
|
+# 1 and 8.
|
|
+0 ubyte >0
|
|
+>0 ubyte <9
|
|
+>>16 belong&0xfe00f0f0 0x3030 Infocom game data
|
|
+>>>0 ubyte >0 (Z-machine %d,
|
|
+>>>>2 ubeshort x Release %d /
|
|
+>>>>18 string >\0 Serial %.6s)
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Glulx: file(1) magic for Glulx binaries.
|