aboutsummaryrefslogtreecommitdiff
path: root/gameDetector.cpp
diff options
context:
space:
mode:
authorJames Brown2002-05-05 20:08:41 +0000
committerJames Brown2002-05-05 20:08:41 +0000
commit1f9c0dc6666bed76c2e025548f2c98bb328bf694 (patch)
treed56740cb80cec942b3cf288129bc0d90bc2f8f32 /gameDetector.cpp
parent2f2d4527efc63dffef87b2dd7826fde53a60897a (diff)
downloadscummvm-rg350-1f9c0dc6666bed76c2e025548f2c98bb328bf694.tar.gz
scummvm-rg350-1f9c0dc6666bed76c2e025548f2c98bb328bf694.tar.bz2
scummvm-rg350-1f9c0dc6666bed76c2e025548f2c98bb328bf694.zip
Add text speed option (-y for Yak :)
svn-id: r4216
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r--gameDetector.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp
index cfb60d5410..59cd556efd 100644
--- a/gameDetector.cpp
+++ b/gameDetector.cpp
@@ -47,6 +47,7 @@ static const char USAGE_STRING[] =
"\t-c<num> - use cdrom <num> for cd audio\n"
"\t-d[<num>] - enable debug output (debug level [1])\n"
"\t-n - no subtitles for speech\n"
+ "\t-y - set text speed (default: 60)\n"
"\t-b<num> - start in room <num>\n"
"\t-t<num> - set music tempo (default- adlib: 0x1F0000, midi: 0x460000)\n"
"\t-p<path> - look for game in <path>\n"
@@ -230,6 +231,11 @@ void GameDetector::parseCommandLine(int argc, char **argv)
if (option != NULL)
scummcfg->change_filename(option);
break;
+ case 'y':
+ HANDLE_OPTION();
+ _talkSpeed = atoi(option);
+ scummcfg->set("talkspeed", _talkSpeed);
+ break;
default:
goto ShowHelpAndExit;
}
@@ -450,6 +456,8 @@ int GameDetector::detectMain(int argc, char **argv)
_noSubtitles = 0; // use by default - should this depend on soundtrack?
+ _talkSpeed = 60;
+
#ifndef _WIN32_WCE
_gfx_mode = GFX_DOUBLESIZE;
#else