From: Rudolf Polzer Date: Mon, 30 Apr 2012 12:01:02 +0000 (+0200) Subject: only WARN about invalid opcodes, and guess their signature X-Git-Tag: xonotic-v0.7.0~55^2~30^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0387398f59f36730a0bde1cfea1261ef31fd5d33;p=xonotic%2Fxonotic.git only WARN about invalid opcodes, and guess their signature --- diff --git a/misc/tools/progs-analyzer.pl b/misc/tools/progs-analyzer.pl index 0a0593b6..9394cf17 100644 --- a/misc/tools/progs-analyzer.pl +++ b/misc/tools/progs-analyzer.pl @@ -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] }; }],