mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
AD: Correctly process small files
This commit is contained in:
parent
a82de67a5d
commit
d4443ed494
@ -544,8 +544,10 @@ static bool getFilePropertiesIntern(uint md5Bytes, const AdvancedMetaEngine::Fil
|
||||
if (!testFile.open(allFiles[fname]))
|
||||
return false;
|
||||
|
||||
if (game.flags & ADGF_TAILMD5)
|
||||
testFile.seek(md5Bytes, SEEK_END);
|
||||
if (game.flags & ADGF_TAILMD5) {
|
||||
if (testFile.size() > md5Bytes)
|
||||
testFile.seek(md5Bytes, SEEK_END);
|
||||
}
|
||||
|
||||
fileProps.size = testFile.size();
|
||||
fileProps.md5 = Common::computeStreamMD5AsString(testFile, md5Bytes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user