r5359 - trunk/misc
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Dec 30 07:56:27 EST 2008
Author: div0
Date: 2008-12-30 07:56:25 -0500 (Tue, 30 Dec 2008)
New Revision: 5359
Modified:
trunk/misc/bsptool.pl
Log:
bsptool: allow replacing a lump by a file
Modified: trunk/misc/bsptool.pl
===================================================================
--- trunk/misc/bsptool.pl 2008-12-30 09:39:12 UTC (rev 5358)
+++ trunk/misc/bsptool.pl 2008-12-30 12:56:25 UTC (rev 5359)
@@ -25,6 +25,7 @@
Changes:
-dlumpname delete a lump (see -i)
+ -rlumpname replace a lump (see -i) by the data from standard input
-gfilename.tga save the lightgrid as filename.tga (debugging)
-Gratio scale down the lightgrid to reduce BSP file size
-ljpgNNN externalize the lightmaps as JPEG, quality NNN (number from 1 to 100)
@@ -236,6 +237,13 @@
unless defined $id;
$bsp[$id]->[2] = "";
}
+ elsif(/^-r(.+)$/) # replace a lump
+ {
+ my $id = $lumpid{$1};
+ die "invalid lump $1 to replace"
+ unless defined $id;
+ $bsp[$id]->[2] = do { undef local $/; scalar <STDIN>; };
+ }
elsif(/^-m(.*)$/) # change the message
{
$msg = $1;
More information about the nexuiz-commits
mailing list