diff options
author | Joost Peters | 2005-03-03 21:42:20 +0000 |
---|---|---|
committer | Joost Peters | 2005-03-03 21:42:20 +0000 |
commit | 8825d26dbede26c92d29e105740061ed858acb2e (patch) | |
tree | fc496d3b4bf0f46d1707910247128167ea328dae /kyra/wsamovie.cpp | |
parent | ff1a0c1c4e62505faeed4f58764ab6a8c7972370 (diff) | |
download | scummvm-rg350-8825d26dbede26c92d29e105740061ed858acb2e.tar.gz scummvm-rg350-8825d26dbede26c92d29e105740061ed858acb2e.tar.bz2 scummvm-rg350-8825d26dbede26c92d29e105740061ed858acb2e.zip |
big endian fixes
svn-id: r16987
Diffstat (limited to 'kyra/wsamovie.cpp')
-rw-r--r-- | kyra/wsamovie.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kyra/wsamovie.cpp b/kyra/wsamovie.cpp index 767e8fa557..1b585ba79e 100644 --- a/kyra/wsamovie.cpp +++ b/kyra/wsamovie.cpp @@ -45,8 +45,14 @@ WSAMovieV1::WSAMovieV1(uint8* data, uint32 size, uint8 gameid) { // I like these Streams .... =) Common::MemoryReadStream datastream(data, size); - datastream.read(&_wsaHeader, sizeof(_wsaHeader)); - + _wsaHeader._numFrames = datastream.readUint16LE(); + _wsaHeader._width = datastream.readUint16LE(); + _wsaHeader._height = datastream.readUint16LE(); + _wsaHeader._xPos = datastream.readByte(); + _wsaHeader._yPos = datastream.readByte(); + _wsaHeader._delta = datastream.readUint16LE(); + _wsaHeader._type = datastream.readUint16LE(); + #ifdef DUMP_FILES // TODO: make Linux/BSD conform FILE* wsaheader = fopen("dumps/wsaheader.txt", "w+"); |