[Scummvm-git-logs] scummvm master -> 4c3f2c30aff6f4d71e673cce134cb4e9742a6cb0

vyzigold smulumas at gmail.com
Wed Sep 18 16:15:27 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4c3f2c30af SUPERNOVA: Fix reading of .dat file


Commit: 4c3f2c30aff6f4d71e673cce134cb4e9742a6cb0
    https://github.com/scummvm/scummvm/commit/4c3f2c30aff6f4d71e673cce134cb4e9742a6cb0
Author: Jaromir Wysoglad (jaromirwysoglad at gmail.com)
Date: 2019-09-18T16:05:16+02:00

Commit Message:
SUPERNOVA: Fix reading of .dat file

When searching for the right block in supernova.dat, the engine
didn't take into account the full size of each block (it thought,
it read 12 bytes less in each block) and thanks to that it
tryed to read one additional block at the end.

Changed paths:
    engines/supernova/supernova.cpp


diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index 41f05ed..e23251c 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -501,7 +501,8 @@ Common::SeekableReadStream *SupernovaEngine::getBlockFromDatFile(Common::String
 			return f.readStream(size);
 		} else {
 			f.skip(size);
-			readSize += size;
+			// size + 4 bytes for id + 4 bytes for lang + 4 bytes for size
+			readSize += size + 12;
 		}
 	}
 





More information about the Scummvm-git-logs mailing list