mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
Fixed version checking for unpacked executable files, and updated the SCI version for an entry for PQ2
svn-id: r38549
This commit is contained in:
parent
3abc4c8842
commit
9ac6dbf9eb
@ -930,7 +930,7 @@ static const struct SciGameDescription SciGameDescriptions[] = {
|
||||
{"resource.003", 0, "77f02def3094af804fd2371db25b7100", 591851},
|
||||
{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, 0},
|
||||
{},
|
||||
SCI_VERSION(0, 000, 395) // FIXME: some versions are v. 0.000.409/0.000.490
|
||||
SCI_VERSION(0, 000, 490) // verified
|
||||
},
|
||||
|
||||
// Police Quest 3 - English Amiga (from www.back2roots.org)
|
||||
@ -1449,7 +1449,6 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl
|
||||
// Is it really an executable file?
|
||||
Common::SeekableReadStream *fileStream = file->createReadStream();
|
||||
bool isExe = isGameExe(fileStream);
|
||||
int exeVersion = -1;
|
||||
|
||||
if (isExe) {
|
||||
if (!readSciVersionFromExe(fileStream, &exeVersion)) {
|
||||
|
@ -236,7 +236,8 @@ void readExe(Common::SeekableReadStream *exeStream, byte *buffer) {
|
||||
bool isLZEXE = isLZEXECompressed(exeStream);
|
||||
|
||||
if (!isLZEXE) {
|
||||
exeStream->seek(0, SEEK_SET);
|
||||
// Read the last VERSION_DETECT_BUF_SIZE bytes
|
||||
exeStream->seek(exeStream->size() - VERSION_DETECT_BUF_SIZE, SEEK_SET);
|
||||
exeStream->read(buffer, VERSION_DETECT_BUF_SIZE);
|
||||
} else {
|
||||
// Read the two initial bytes
|
||||
|
Loading…
x
Reference in New Issue
Block a user