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.

15 lines
392 B

  1. #!perl
  2. open(DLL,"../../../game/bin/shaderapidx9.dll" ) || die "can't open shaderapi";
  3. binmode DLL;
  4. my $dllcode = do { local( $/ ) ; <DLL> } ; # slurp comparison output in
  5. close DLL;
  6. if ( $dllcode =~ /dynamic_shader_compile_is_on/s )
  7. {
  8. open(ERRORS,">errors.txt") || die "huh - can't write";
  9. print ERRORS "stdshader_dx9.dll was built with dynamic shader compile!\n";
  10. close ERRORS;
  11. }