summaryrefslogtreecommitdiff
path: root/devtools/mat_check.pl
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /devtools/mat_check.pl
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'devtools/mat_check.pl')
-rw-r--r--devtools/mat_check.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/devtools/mat_check.pl b/devtools/mat_check.pl
new file mode 100644
index 0000000..acf71c2
--- /dev/null
+++ b/devtools/mat_check.pl
@@ -0,0 +1,30 @@
+#!perl
+
+while(<>)
+ {
+ s/[\n\r]//g;
+ s@\\@/@g;
+ if (/\.vtf$/)
+ {
+ $origname=$_;
+ if (s@/game/(\S+)/materials/@/content/\1/materialsrc/@i)
+ {
+ s/\.vtf$/.tga/i;
+ unless (-e $_)
+ {
+ print "Missing :$_ \n for $origname\n";
+ }
+ else
+ {
+ #print "***found content $_ for $origname\n";
+ }
+
+ }
+ else
+ {
+ print "I don't know where the materialsrc for $origname is supposed to be!\n";
+ }
+
+ }
+
+ }