aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/fmopl.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp
index 91ff60919a..9b3ffe56a6 100644
--- a/sound/fmopl.cpp
+++ b/sound/fmopl.cpp
@@ -79,11 +79,14 @@ Config::DriverId Config::detect(OplType type) {
// the requested OPL chip.
if (drv != -1 && drv != kAuto) {
// If the chip is supported, just use the driver.
- if ((flags & _drivers[drv].flags))
+ if ((flags & _drivers[drv].flags)) {
return drv;
- // When it doesn't support the flags fall back to auto detection
- else
- drv = -1;
+ } else {
+ // Else we will output a warning and just
+ // return that no valid driver is found.
+ warning("Your selected OPL driver \"%s\" does not support type %d emulation, which is requested by your game.", _drivers[drv].description, type);
+ return -1;
+ }
}
// Detect the first matching emulator