mirror of
https://github.com/Rogiel/php-mpq
synced 2025-12-06 00:13:04 +00:00
@@ -13,6 +13,7 @@ The recommended way of installing this library is using Composer.
|
|||||||
use Rogiel\MPQ\MPQFile;
|
use Rogiel\MPQ\MPQFile;
|
||||||
|
|
||||||
$file = MPQFile::parseFile(__DIR__.'/test.SC2Replay');
|
$file = MPQFile::parseFile(__DIR__.'/test.SC2Replay');
|
||||||
|
$file->parse();
|
||||||
$stream = $file->openStream('replay.details');
|
$stream = $file->openStream('replay.details');
|
||||||
while($data = $stream->readBytes(100)) {
|
while($data = $stream->readBytes(100)) {
|
||||||
echo $data;
|
echo $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user