From 689ca53c8cd3bcbf42e895e57a9643566a94fb2a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 26 May 2003 07:35:33 +0000 Subject: Error out if unsupport language option is used svn-id: r7992 --- simon/simon.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3