mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
LAB: Read the header of DIFF files when opening them
This commit is contained in:
parent
b61ade788e
commit
280bd0f7c2
@ -286,10 +286,9 @@ void Anim::readDiff(Common::File *diffFile, bool playOnce, bool onlyDiffData) {
|
||||
_diffFile = diffFile;
|
||||
|
||||
_continuous = false;
|
||||
uint32 signature1 = _diffFile->readUint32BE();
|
||||
uint32 signature2 = _diffFile->readUint32LE();
|
||||
|
||||
if ((signature1 != MKTAG('D', 'I', 'F', 'F')) || (signature2 != 1219009121)) {
|
||||
uint32 magicBytes = _diffFile->readUint32LE();
|
||||
if (magicBytes != 1219009121) {
|
||||
_isPlaying = false;
|
||||
return;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ DisplayMan::~DisplayMan() {
|
||||
|
||||
void DisplayMan::loadPict(const Common::String filename) {
|
||||
freePict();
|
||||
_curBitmap = _vm->_resource->openDataFile(filename);
|
||||
_curBitmap = _vm->_resource->openDataFile(filename, MKTAG('D', 'I', 'F', 'F'));
|
||||
}
|
||||
|
||||
void DisplayMan::loadBackPict(const Common::String fileName, uint16 *highPal) {
|
||||
|
Loading…
Reference in New Issue
Block a user