From eb4b3404aa00220d659e532151dab13d642c17a3 Mon Sep 17 00:00:00 2001 From: Svxy Date: Wed, 31 May 2023 17:31:32 -0400 Subject: Released --- game/build/tools/rename_file.pl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 game/build/tools/rename_file.pl (limited to 'game/build/tools/rename_file.pl') diff --git a/game/build/tools/rename_file.pl b/game/build/tools/rename_file.pl new file mode 100644 index 0000000..3f2307f --- /dev/null +++ b/game/build/tools/rename_file.pl @@ -0,0 +1,8 @@ +$file = $ARGV[0]; +$ChunkId = $ARGV[1]; +$FieldName = $ARGV[2]; + +$/ = ".p3d"; +chomp( $file ); + +`p3dmutate -i $ChunkId -f $FieldName -a $file $file.p3d -o $file.p3d 1>&2` \ No newline at end of file -- cgit v1.2.3