mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-09 02:09:35 +00:00
1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
if( scalar( @ARGV ) != 2 )
|
||||
{
|
||||
die "Usage: playback_getframe.pl framenum blah.txt\n";
|
||||
}
|
||||
|
||||
# getframe.pl framenum blah.txt
|
||||
$line = 0;
|
||||
$desiredFrame = shift;
|
||||
$frame = 1;
|
||||
open INPUT, shift || die;
|
||||
while( <INPUT> )
|
||||
{
|
||||
$line++;
|
||||
if( /Dx8Present/ )
|
||||
{
|
||||
$frame++;
|
||||
}
|
||||
if( $frame == $desiredFrame )
|
||||
{
|
||||
print "$line: $_";
|
||||
}
|
||||
last if $frame > $desiredFrame;
|
||||
}
|
||||
close INPUT;
|
||||
Reference in New Issue
Block a user