From 7c64957ec9a87cf71ccf5fa7c28bb8c37b27efc6 Mon Sep 17 00:00:00 2001 From: Mischa Poslawsky Date: Mon, 2 Mar 2009 16:48:01 +0100 Subject: [PATCH] parse-wormedit: distinguish newer v95 level strings Some 86s files exist with version identifier 95, which already contain newer v97 features. This is logically --version=96, but needs to be specified manually. --- parse-wormedit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/parse-wormedit b/parse-wormedit index 42d9d21..84e4e31 100755 --- a/parse-wormedit +++ b/parse-wormedit @@ -262,10 +262,11 @@ sub read { # current @FORMAT } $offsetbase = 0xF400; + when (96) {} + ref $_ and splice(@$_, -8, 2) for @{ $FORMAT[11] }; # no multifood + splice @FORMAT, 12, 2; # no reserved byte when (95) {} - splice @FORMAT, 6, 2; - ref $_ and splice(@$_, -8, 2) for @{ $FORMAT[9] }; # no multifood - splice @FORMAT, 10, 2; # no reserved byte + splice @FORMAT, 6, 2; # no description when (94) {} when (90) { $FORMAT[5] = 'C/a'; # length-preceding name -- 2.30.0