diff options
author | Travis Howell | 2003-05-26 07:35:33 +0000 |
---|---|---|
committer | Travis Howell | 2003-05-26 07:35:33 +0000 |
commit | 689ca53c8cd3bcbf42e895e57a9643566a94fb2a (patch) | |
tree | 7e1c42a0a300e008413cee43f8a9682123eb812b | |
parent | 645aa837e79fb7189ec2b2a7fd83ddf07cdc02af (diff) | |
download | scummvm-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.cpp | 4 |
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; |