Data::MPQ::Shunt - Perl module to work with MPQ shunt block
use Data::MPQ; my $mpq = Data::MPQ->new(filename => 'my_game.sc2replay'); $mpq->parse; my $shunt = $mpq->shunt; print $shunt->user_data_size; print $shunt->archive_header_offset;
This module parse and give you an access to MPQ shunt block, in other words: user data information block
Constructor for the Data::MPQ::Shunt class. Requires two parameters:
file - Filehandle of the MPQ archive offset - Offset of the beginning of the shunt block
Method to parse shunt block of the MPQ file
Accessor to the user_data_size field of the shunt block
Accessor to the archive_header_offset field of the shunt block
Acessor to raw user_data of the shunt block
cono q@cono.org.ua
q@cono.org.ua
C corporation (c)
To install Data::MPQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::MPQ
CPAN shell
perl -MCPAN -e shell install Data::MPQ
For more information on module installation, please visit the detailed CPAN module installation guide.