aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWalter van Niftrik2017-02-23 23:40:36 +0100
committerWalter van Niftrik2017-03-05 21:16:57 +0100
commite97973a9307941b7accee46ba420e74d3b28c7f6 (patch)
tree7b2df517b56e15981a4a275909288f72e39f04aa /engines
parent15c0cb425899803c3ba884413303a817ed5ed5a5 (diff)
downloadscummvm-rg350-e97973a9307941b7accee46ba420e74d3b28c7f6.tar.gz
scummvm-rg350-e97973a9307941b7accee46ba420e74d3b28c7f6.tar.bz2
scummvm-rg350-e97973a9307941b7accee46ba420e74d3b28c7f6.zip
ADL: Skip deleted files when reading VTOC
Diffstat (limited to 'engines')
-rw-r--r--engines/adl/disk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/adl/disk.cpp b/engines/adl/disk.cpp
index 133c655706..2c1fe8e767 100644
--- a/engines/adl/disk.cpp
+++ b/engines/adl/disk.cpp
@@ -406,7 +406,8 @@ void Files_DOS33::readVTOC() {
entry.totalSectors = stream->readUint16BE();
- if (sectorList.track != 0) {
+ // 0 is empty slot, 255 is deleted file
+ if (sectorList.track != 0 && sectorList.track != 255) {
readSectorList(sectorList, entry.sectors);
_toc[name] = entry;
}