mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
talkspeed and copy-protection aren't SCUMM-specific anymore SAGA uses them
too. svn-id: r19154
This commit is contained in:
@@ -475,12 +475,12 @@ arguments - see the next section.
|
||||
|
||||
--alt-intro Use alternative intro for CD versions of Beneath a
|
||||
Steel Sky and Flight of the Amazon Queen
|
||||
--copy-protection Enable copy protection in SCUMM games, when
|
||||
--copy-protection Enable copy protection in games, when
|
||||
ScummVM disables it by default.
|
||||
--demo-mode Start demo mode of Maniac Mansion (Classic version)
|
||||
--tempo=NUM Set music tempo (in percent, 50-200) for SCUMM games
|
||||
(default: 100)
|
||||
--talkspeed=NUM Set talk speed for SCUMM games
|
||||
--talkspeed=NUM Set talk speed for games
|
||||
|
||||
|
||||
The meaning of most long options can be inverted by prefixing them with "no-",
|
||||
|
||||
+13
-12
@@ -101,13 +101,13 @@ static const char USAGE_STRING[] =
|
||||
" --alt-intro Use alternative intro for CD versions of Beneath a\n"
|
||||
" Steel Sky and Flight of the Amazon Queen\n"
|
||||
#endif
|
||||
#ifndef DISABLE_SCUMM
|
||||
" --copy-protection Enable copy protection in SCUMM games, when\n"
|
||||
" ScummVM disables it by default.\n"
|
||||
" --talkspeed=NUM Set talk speed for games (default: 60)\n"
|
||||
#ifndef DISABLE_SCUMM
|
||||
" --demo-mode Start demo mode of Maniac Mansion\n"
|
||||
" --tempo=NUM Set music tempo (in percent, 50-200) for SCUMM games\n"
|
||||
" (default: 100)\n"
|
||||
" --talkspeed=NUM Set talk speed for SCUMM games (default: 60)\n"
|
||||
#endif
|
||||
"\n"
|
||||
"The meaning of boolean long options can be inverted by prefixing them with\n"
|
||||
@@ -152,10 +152,11 @@ GameDetector::GameDetector() {
|
||||
ConfMan.registerDefault("object_labels", true);
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_SCUMM
|
||||
ConfMan.registerDefault("copy_protection", false);
|
||||
ConfMan.registerDefault("demo_mode", false);
|
||||
ConfMan.registerDefault("talkspeed", 60);
|
||||
|
||||
#ifndef DISABLE_SCUMM
|
||||
ConfMan.registerDefault("demo_mode", false);
|
||||
ConfMan.registerDefault("tempo", 0);
|
||||
#endif
|
||||
|
||||
@@ -539,6 +540,14 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
|
||||
settings["savepath"] = option;
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION_INT("talkspeed")
|
||||
settings["talkspeed"] = option;
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION_BOOL("copy-protection")
|
||||
settings["copy_protection"] = boolValue ? "true" : "false";
|
||||
END_OPTION
|
||||
|
||||
#ifndef DISABLE_SCUMM
|
||||
DO_LONG_OPTION("tempo")
|
||||
// Use the special value '0' for the base in (int)strtol.
|
||||
@@ -550,14 +559,6 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
|
||||
settings["tempo"] = buf;
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION_INT("talkspeed")
|
||||
settings["talkspeed"] = option;
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION_BOOL("copy-protection")
|
||||
settings["copy_protection"] = boolValue ? "true" : "false";
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION_BOOL("demo-mode")
|
||||
settings["demo_mode"] = boolValue ? "true" : "false";
|
||||
END_OPTION
|
||||
|
||||
+2
-2
@@ -47,12 +47,12 @@ Usage: scummvm [OPTIONS]... [GAME]\\
|
||||
--force-1x-overlay &Make inner GUI 320x200\\
|
||||
--alt-intro &Use alternative intro for CD versions of Beneath a\\
|
||||
&Steel Sky and Flight of the Amazon Queen\\
|
||||
--copy-protection &Enable copy protection in SCUMM games, when\\
|
||||
--copy-protection &Enable copy protection in games, when\\
|
||||
&ScummVM disables it by default.\\
|
||||
--demo-mode &Start demo mode of Maniac Mansion (Classic version)\\
|
||||
--tempo=NUM &Set music tempo (in percent, 50-200) for SCUMM\\
|
||||
&games (default: 100)\\
|
||||
--talkspeed=NUM &Set talk speed for SCUMM games\\
|
||||
--talkspeed=NUM &Set talk speed for games\\
|
||||
\end{tabular}
|
||||
|
||||
The meaning of most long options can be inverted by prefixing them with "no-",
|
||||
|
||||
Reference in New Issue
Block a user