make sky detect v.0.0348 (even though not existing ;)
svn-id: r8751
This commit is contained in:
parent
a4bd31578b
commit
5854c6a7de
3 changed files with 9 additions and 15 deletions
|
@ -45,8 +45,6 @@ SkyDisk::SkyDisk(char *gameDataPath) {
|
|||
|
||||
if (!(_dinnerTableEntries = _dnrHandle->readUint32LE()))
|
||||
error("Error reading from sky.dnr!\n"); //even though it was opened correctly?!
|
||||
|
||||
debug(1, "Found BASS version v0.0%d (%d dnr entries)", determineGameVersion(), _dinnerTableEntries);
|
||||
|
||||
_dinnerTableArea = (uint8 *)malloc(_dinnerTableEntries * 8);
|
||||
entriesRead = _dnrHandle->read(_dinnerTableArea, 8 * _dinnerTableEntries) / 8;
|
||||
|
@ -58,6 +56,8 @@ SkyDisk::SkyDisk(char *gameDataPath) {
|
|||
if (_dataDiskHandle->isOpen() == false)
|
||||
error("Error opening %s%s!\n", _gameDataPath, dataFilename);
|
||||
|
||||
debug(1, "Found BASS version v0.0%d (%d dnr entries)", determineGameVersion(), _dinnerTableEntries);
|
||||
|
||||
memset(_buildList, 0, 60 * 2);
|
||||
memset(_loadedFilesList, 0, 60 * 4);
|
||||
}
|
||||
|
@ -415,7 +415,8 @@ uint32 SkyDisk::determineGameVersion() {
|
|||
return 303;
|
||||
case 1445:
|
||||
//floppy (v0.0331 or v0.0348)
|
||||
return 331;
|
||||
if (_dataDiskHandle->size() == 8830435) return 348;
|
||||
else return 331;
|
||||
case 1711:
|
||||
//cd demo (v0.0365)
|
||||
return 365;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue