diff options
author | Iskrich | 2016-05-24 22:03:21 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 2de66ee08396ca70bdb75e47867e7bd386c5bb9b (patch) | |
tree | e7e0019830ca226ce212f6f93fec0eb83b4026d1 /engines/director/dib.cpp | |
parent | 08641d688dfb003af01a342a27a847f8cf75f192 (diff) | |
download | scummvm-rg350-2de66ee08396ca70bdb75e47867e7bd386c5bb9b.tar.gz scummvm-rg350-2de66ee08396ca70bdb75e47867e7bd386c5bb9b.tar.bz2 scummvm-rg350-2de66ee08396ca70bdb75e47867e7bd386c5bb9b.zip |
DIRECTOR: Add score data loader
Diffstat (limited to 'engines/director/dib.cpp')
-rw-r--r-- | engines/director/dib.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/director/dib.cpp b/engines/director/dib.cpp index 733d666ab2..4310e547e7 100644 --- a/engines/director/dib.cpp +++ b/engines/director/dib.cpp @@ -78,10 +78,7 @@ void DIBDecoder::loadPalette(Common::SeekableReadStream &stream) { bool DIBDecoder::loadStream(Common::SeekableReadStream &stream) { - byte *buf = (byte *)malloc(stream.size()); - stream.read(buf, stream.size()); - Common::hexdump(buf, stream.size()); - stream.seek(0); + uint32 headerSize = stream.readUint32LE(); if (headerSize != 40) |