aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-05-26 07:35:33 +0000
committerTravis Howell2003-05-26 07:35:33 +0000
commit689ca53c8cd3bcbf42e895e57a9643566a94fb2a (patch)
tree7e1c42a0a300e008413cee43f8a9682123eb812b
parent645aa837e79fb7189ec2b2a7fd83ddf07cdc02af (diff)
downloadscummvm-rg350-689ca53c8cd3bcbf42e895e57a9643566a94fb2a.tar.gz
scummvm-rg350-689ca53c8cd3bcbf42e895e57a9643566a94fb2a.tar.bz2
scummvm-rg350-689ca53c8cd3bcbf42e895e57a9643566a94fb2a.zip
Error out if unsupport language option is used
svn-id: r7992
-rw-r--r--simon/simon.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 0550373443..eff6a2a4f4 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4420,6 +4420,10 @@ void SimonState::go() {
} else {
_subtitles = true;
}
+
+ if (_language == 4 || (_language > 5 && _language < 20))
+ error("Only English, French, German, Hebrew, Italian and Spanish are supported");
+
//Only English and German voice files were produced
if (_language >= 2)
_subtitles = true;