This commit is contained in:
FluorescentCIAAfricanAmerican
2020-04-22 12:56:21 -04:00
commit 3bf9df6b27
15370 changed files with 5489726 additions and 0 deletions
+24
View File
@@ -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;