aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/player_pce.cpp4
-rw-r--r--engines/scumm/player_pce.h4
-rw-r--r--engines/scumm/scumm.cpp2
3 files changed, 10 insertions, 0 deletions
diff --git a/engines/scumm/player_pce.cpp b/engines/scumm/player_pce.cpp
index a476a71197..81f70c283e 100644
--- a/engines/scumm/player_pce.cpp
+++ b/engines/scumm/player_pce.cpp
@@ -34,6 +34,8 @@
#include <math.h>
#include "player_pce.h"
+#ifdef USE_RGB_COLOR
+
namespace Scumm {
// CPU and PSG use the same base clock but with a different divider
@@ -753,3 +755,5 @@ int Player_PCE::getMusicTimer() const {
}
} // End of namespace Scumm
+
+#endif // USE_RGB_COLOR
diff --git a/engines/scumm/player_pce.h b/engines/scumm/player_pce.h
index 479ec5c506..c30e1bd8cf 100644
--- a/engines/scumm/player_pce.h
+++ b/engines/scumm/player_pce.h
@@ -31,6 +31,8 @@
#include "sound/audiostream.h"
#include "sound/mixer.h"
+#ifdef USE_RGB_COLOR
+
namespace Scumm {
class ScummEngine;
@@ -128,4 +130,6 @@ private:
} // End of namespace Scumm
+#endif // USE_RGB_COLOR
+
#endif
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 8d3c3c0957..309e79b7a0 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1726,8 +1726,10 @@ void ScummEngine::setupMusic(int midi) {
_musicEngine = new Player_V2A(this, _mixer);
} else if (_game.platform == Common::kPlatformAmiga && _game.version == 3) {
_musicEngine = new Player_V3A(this, _mixer);
+#ifdef USE_RGB_COLOR
} else if (_game.platform == Common::kPlatformPCEngine && _game.version == 3) {
_musicEngine = new Player_PCE(this, _mixer);
+#endif
} else if (_game.platform == Common::kPlatformAmiga && _game.version <= 4) {
_musicEngine = new Player_V4A(this, _mixer);
} else if (_game.id == GID_MANIAC && _game.version == 1) {