aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl_v4.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2017-02-27 22:12:46 +0100
committerWalter van Niftrik2017-03-05 21:16:58 +0100
commit19b07a7c125b40d42996e1c943131504649b97eb (patch)
tree9f5f79fdd5aa07f5dc619b553e418b4fe3162085 /engines/adl/adl_v4.cpp
parentc88d30d8d3bbe02eca5b09ae9061ade3184d96ef (diff)
downloadscummvm-rg350-19b07a7c125b40d42996e1c943131504649b97eb.tar.gz
scummvm-rg350-19b07a7c125b40d42996e1c943131504649b97eb.tar.bz2
scummvm-rg350-19b07a7c125b40d42996e1c943131504649b97eb.zip
ADL: Move multi-disk handling into v2
Diffstat (limited to 'engines/adl/adl_v4.cpp')
-rw-r--r--engines/adl/adl_v4.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/engines/adl/adl_v4.cpp b/engines/adl/adl_v4.cpp
index e8ee798199..c06099b98d 100644
--- a/engines/adl/adl_v4.cpp
+++ b/engines/adl/adl_v4.cpp
@@ -20,15 +20,15 @@
*
*/
+#include "common/error.h"
+
#include "adl/adl_v4.h"
#include "adl/display.h"
-#include "adl/detection.h"
namespace Adl {
AdlEngine_v4::AdlEngine_v4(OSystem *syst, const AdlGameDescription *gd) :
AdlEngine_v3(syst, gd),
- _currentVolume(0),
_itemPicIndex(nullptr) {
}
@@ -190,26 +190,6 @@ Common::String AdlEngine_v4::getItemDescription(const Item &item) const {
return _itemDesc[item.id - 1];
}
-Common::String AdlEngine_v4::getDiskImageName(byte volume) const {
- const ADGameFileDescription *ag;
-
- for (ag = _gameDescription->desc.filesDescriptions; ag->fileName; ag++)
- if (ag->fileType == volume)
- return ag->fileName;
-
- error("Disk volume %d not found", volume);
-}
-
-void AdlEngine_v4::insertDisk(byte volume) {
- delete _disk;
- _disk = new DiskImage();
-
- if (!_disk->open(getDiskImageName(volume)))
- error("Failed to open disk volume %d", volume);
-
- _currentVolume = volume;
-}
-
void AdlEngine_v4::loadRegionLocations(Common::ReadStream &stream, uint regions) {
for (uint r = 0; r < regions; ++r) {
RegionLocation loc;