aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2002-05-12 22:24:10 +0000
committerNicolas Bacca2002-05-12 22:24:10 +0000
commit2a53e8f661c06b79a9a2d7443f4fb1e6be71cf13 (patch)
tree12a47f46b64d971229ab2501a2d7216acb106172
parentb17a510c2444623c980155c14b9bfb3a9d870d6f (diff)
downloadscummvm-rg350-2a53e8f661c06b79a9a2d7443f4fb1e6be71cf13.tar.gz
scummvm-rg350-2a53e8f661c06b79a9a2d7443f4fb1e6be71cf13.tar.bz2
scummvm-rg350-2a53e8f661c06b79a9a2d7443f4fb1e6be71cf13.zip
Always use Midi Emulation on CE devices
svn-id: r4302
-rw-r--r--gameDetector.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp
index bad009effb..5cd9a94a4e 100644
--- a/gameDetector.cpp
+++ b/gameDetector.cpp
@@ -570,6 +570,11 @@ OSystem *GameDetector::createSystem() {
MidiDriver *GameDetector::createMidi() {
int drv = _midi_driver;
+#if defined (_WIN32_WCE)
+ /* Always use MIDI emulation on CE devices */
+ if (drv == MD_AUTO) drv = MD_MIDIEMU;
+#endif
+
#if defined (WIN32) && !defined(_WIN32_WCE)
/* MD_WINDOWS is default MidiDriver on windows targets */
if (drv == MD_AUTO) drv = MD_WINDOWS;