Counter Strike : Global Offensive Source Code
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.

12 lines
244 B

  1. #!perl
  2. open( HANDLE,shift) || die;
  3. undef $/;
  4. binmode HANDLE;
  5. $data=<HANDLE>;
  6. $ctr=0;
  7. for($i=0;$i<length($data);$i++)
  8. {
  9. $out.=sprintf("0x%02x,", unpack("C", substr($data,$i,1)) );
  10. $out.="\n" if ( ( $ctr % 20) == 19);
  11. $ctr++;
  12. }
  13. print $out;