]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
only WARN about invalid opcodes, and guess their signature
authorRudolf Polzer <divverent@alientrap.org>
Mon, 30 Apr 2012 12:01:02 +0000 (14:01 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 30 Apr 2012 12:01:02 +0000 (14:01 +0200)
misc/tools/progs-analyzer.pl

index 0a0593b6c0d8c6e7977602cf24a404321dc27dd3..9394cf171a5d6d2a25d2f85f02e7d67aeadcf023 100644 (file)
@@ -127,7 +127,7 @@ use constant TYPES => {
        int => ['V', 4, signed 32],
        ushort => ['v', 2, id],
        short => ['v', 2, signed 16],
-       opcode => ['v', 2, sub { OPCODE_E->[$_[0]] or die "Invalid opcode: $_[0]"; }],
+       opcode => ['v', 2, sub { OPCODE_E->[$_[0]] or do { warn "Invalid opcode: $_[0]"; "INVALID#$_[0]"; }; }],
        float => ['f', 4, id],
        uchar8 => ['a8', 8, sub { [unpack 'C8', $_[0]] }],
        global => ['i', 4, sub { { int => $_[0], float => unpack "f", pack "L", $_[0] }; }],