SCI: removing pirated sq4 version from detection

"fixes" bug #3037800
fixing warning in seg_manager

svn-id: r51576
This commit is contained in:
Martin Kiewitz 2010-08-01 12:38:07 +00:00
parent b0889cfd01
commit 83e51b0e92
2 changed files with 3 additions and 2 deletions

View File

@ -2831,7 +2831,8 @@ static const struct ADGameDescription SciGameDescriptions[] = {
Common::DE_DEU, Common::kPlatformAmiga, 0, GUIO_NOSPEECH
},
// Space Quest 4 - English DOS
#if 0
// Space Quest 4 - English DOS - THIS VERSION IS PIRATED/CRACKED AND REPACKAGED =DO NOT RE-ADD=
// Executable scanning reports "1.000.753"
// SCI interpreter version 1.000.200 (just a guess)
{"sq4", "", {
@ -2840,6 +2841,7 @@ static const struct ADGameDescription SciGameDescriptions[] = {
{NULL, 0, NULL, 0}},
Common::EN_ANY, Common::kPlatformPC, 0, GUIO_NOSPEECH
},
#endif
// Space Quest 4 - English DOS
// Executable scanning reports "1.000.753"

View File

@ -852,7 +852,6 @@ byte *SegManager::allocDynmem(int size, const char *descr, reg_t *addr) {
}
bool SegManager::freeDynmem(reg_t addr) {
SegmentType foo = _heap[addr.segment]->getType();
if (addr.segment < 1 || addr.segment >= _heap.size() || !_heap[addr.segment] || _heap[addr.segment]->getType() != SEG_TYPE_DYNMEM)
return false; // error