aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-09 18:50:20 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:10 +0100
commitd3811422f82180e482fc9dc3aabca48df8844119 (patch)
treeff4dc223616ca6bf299dc7dd8aa2fe337e7589e6
parentdde75d709e219f97e0b5ab103da96fe734631acb (diff)
downloadscummvm-rg350-d3811422f82180e482fc9dc3aabca48df8844119.tar.gz
scummvm-rg350-d3811422f82180e482fc9dc3aabca48df8844119.tar.bz2
scummvm-rg350-d3811422f82180e482fc9dc3aabca48df8844119.zip
TOLTECS: Fixed compilation and reduced header dependencies a bit
-rw-r--r--engines/toltecs/sound.h1
-rw-r--r--engines/toltecs/toltecs.cpp3
-rw-r--r--engines/toltecs/toltecs.h1
3 files changed, 2 insertions, 3 deletions
diff --git a/engines/toltecs/sound.h b/engines/toltecs/sound.h
index 244fcc300d..f560168bb3 100644
--- a/engines/toltecs/sound.h
+++ b/engines/toltecs/sound.h
@@ -37,7 +37,6 @@
#include "sound/audiostream.h"
#include "sound/mixer.h"
-#include "sound/audiocd.h"
#include "sound/decoders/voc.h"
#include "engines/engine.h"
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index 9a0f6694b2..ae5e17cae4 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -39,6 +39,7 @@
#include "engines/util.h"
#include "sound/mixer.h"
+#include "backends/audiocd/audiocd.h"
#include "toltecs/toltecs.h"
#include "toltecs/animation.h"
@@ -74,7 +75,7 @@ ToltecsEngine::ToltecsEngine(OSystem *syst, const ToltecsGameDescription *gameDe
int cd_num = ConfMan.getInt("cdrom");
if (cd_num >= 0)
- _system->openCD(cd_num);
+ _system->getAudioCDManager()->openCD(cd_num);
}
diff --git a/engines/toltecs/toltecs.h b/engines/toltecs/toltecs.h
index 5d0f39be6a..e77a1bb52c 100644
--- a/engines/toltecs/toltecs.h
+++ b/engines/toltecs/toltecs.h
@@ -38,7 +38,6 @@
#include "sound/audiostream.h"
#include "sound/mixer.h"
#include "sound/decoders/voc.h"
-#include "sound/audiocd.h"
#include "engines/engine.h"