Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
438 B

  1. #!perl
  2. while(<>)
  3. {
  4. s/[\n\r]//g;
  5. s@\\@/@g;
  6. if (/\.vtf$/)
  7. {
  8. $origname=$_;
  9. if (s@/game/(\S+)/materials/@/content/\1/materialsrc/@i)
  10. {
  11. s/\.vtf$/.tga/i;
  12. unless (-e $_)
  13. {
  14. print "Missing :$_ \n for $origname\n";
  15. }
  16. else
  17. {
  18. #print "***found content $_ for $origname\n";
  19. }
  20. }
  21. else
  22. {
  23. print "I don't know where the materialsrc for $origname is supposed to be!\n";
  24. }
  25. }
  26. }