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.

25 lines
608 B

  1. #!perl
  2. use File::Find;
  3. use Win32::API;
  4. find(\&ProcessFile, "../../../game/bin/" );
  5. sub ProcessFile
  6. {
  7. return if (/360/);
  8. return unless( /\.dll$/i );
  9. my $LoadLibrary = Win32::API->new( "kernel32", "LoadLibrary","P","L" );
  10. my $GetProcAddress = Win32::API->new( "kernel32", "GetProcAddress","LP","L" );
  11. my $FreeLibrary = Win32::API->new( "kernel32", "FreeLibrary", "P", "V" );
  12. my $handle=$LoadLibrary->Call($_);
  13. if ( $handle )
  14. {
  15. my $proc = $GetProcAddress->Call($handle, "BuiltDebug\0");
  16. if ( $proc )
  17. {
  18. print "Error $_ is built debug\n";
  19. }
  20. $FreeLibrary->Call( $handle );
  21. }
  22. }