aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2017-08-11 15:58:41 +0200
committerWalter van Niftrik2019-07-17 09:54:14 +0200
commit14bfe02b81cf22887750a94bc703502cc82473b9 (patch)
treeab1bb61ce8a60faa02722ab772bc114ffaa18593 /engines/adl
parentf4f4d6119f4db550bcf7201788fd92adfa1915d0 (diff)
downloadscummvm-rg350-14bfe02b81cf22887750a94bc703502cc82473b9.tar.gz
scummvm-rg350-14bfe02b81cf22887750a94bc703502cc82473b9.tar.bz2
scummvm-rg350-14bfe02b81cf22887750a94bc703502cc82473b9.zip
ADL: Add support for 40/8/512 PC raw disk images
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/detection.cpp3
-rw-r--r--engines/adl/disk.cpp5
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/adl/detection.cpp b/engines/adl/detection.cpp
index 4eaebc713e..41476303e5 100644
--- a/engines/adl/detection.cpp
+++ b/engines/adl/detection.cpp
@@ -312,7 +312,8 @@ const DiskImageExt diskImageExts[] = {
{ Common::kPlatformApple2, ".nib" },
{ Common::kPlatformApple2, ".dsk" },
{ Common::kPlatformApple2, ".d13" },
- { Common::kPlatformAtari8Bit, ".xfd" }
+ { Common::kPlatformAtari8Bit, ".xfd" },
+ { Common::kPlatformDOS, ".img" }
};
class AdlMetaEngine : public AdvancedMetaEngine {
diff --git a/engines/adl/disk.cpp b/engines/adl/disk.cpp
index 27bc9b318c..b2746bcee7 100644
--- a/engines/adl/disk.cpp
+++ b/engines/adl/disk.cpp
@@ -305,6 +305,11 @@ bool DiskImage::open(const Common::String &filename) {
_sectorsPerTrack = 18;
_bytesPerSector = 128;
_stream = f;
+ } else if (lcName.hasSuffix(".img")) {
+ _tracks = 40;
+ _sectorsPerTrack = 8;
+ _bytesPerSector = 512;
+ _stream = f;
}
int expectedSize = _tracks * _sectorsPerTrack * _bytesPerSector;