Data::MPQ::Archive::BlockTable - Perl module to work with MPQ archive block table
use Data::MPQ; use Data::MPQ::Constants qw(DEFAULT_LANGUAGE DEFAULT_PLATFORM); my $mpq = Data::MPQ->new(filename => 'my_game.sc2replay'); $mpq->parse; my $archive = $mpq->archive; my $block_id = $archive-> hash_table-> find_hash_entry('(listfile)', DEFAULT_LANGUAGE, DEFAULT_PLATFORM)-> file_block_index; print $archive-> block_table-> get_block($block_id)-> is_file;
This module parse and give you an access to MPQ block table
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.