Fix platform command line and add to readme

svn-id: r10011
This commit is contained in:
Travis Howell 2003-09-05 16:12:54 +00:00
parent cd9496ab3a
commit 0a9d234b52
2 changed files with 4 additions and 12 deletions

10
README
View File

@ -376,7 +376,6 @@ Command Line Options:
-f - Full-screen mode. (-F forces window mode.)
-g<mode> - Select graphics scaler. See below.
-e<mode> - Select sound engine. See below.
-a - Specify game is Amiga version
-q<lang> - Select language. See below.
-c<num> - Drive to play cd audio from. E.g., 0 is first drive.
-m<num> - Set the music volume, 0-255. Default is '192'
@ -393,8 +392,7 @@ Command Line Options:
-d[<num>] - Set debug verbosity to <num>
-u - Dump scripts if a directory called 'dumps' exists in
current directory
--atari-st - Specify game is Atari ST version
--macintosh - Specify game is Macintosh version
--platform= - Specify version of game (amiga,atari-st,macintosh)
--multi-midi - Enable combination Adlib and native MIDI
--native-mt32 - True Roland MT-32 (disable GM emulation)
--fullscreen - Full-screen mode (same as -f)
@ -807,12 +805,6 @@ An example config file looks as follows:
The following keywords are recognized:
amiga bool Tells ScummVM whether or not a game is the
Amiga version
atari_st bool Tells ScummVM whether or not a game is the
Atari ST version
macintosh bool Tells ScummVM whether or not a game is the
Macintosh version
basename string
path string The path to where a game's data files are
read_only bool If true, ScummVM will never try to overwrite

View File

@ -83,7 +83,7 @@ static const char USAGE_STRING[] =
"\t-d[<num>] - Enable debug output (debug level [1])\n"
"\t-u - Dump scripts\n"
"\n"
"\t--platform - Specify version of game (amiga,atari-st,macintosh)\n"
"\t--platform= - Specify version of game (amiga,atari-st,macintosh)\n"
"\t--multi-midi - Enable combination Adlib and native MIDI\n"
"\t--native-mt32 - True Roland MT-32 (disable GM emulation)\n"
"\t--fullscreen - Full-screen mode (same as -f)\n"
@ -502,8 +502,8 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
exit(1);
case '-':
// Long options. Let the fun begin!
if (!strncmp(s, "platform", 8)) {
s += 8;
if (!strncmp(s, "platform=", 9)) {
s += 9;
if (!strcmp (s, "amiga"))
_platform = 1;
else if (!strcmp (s, "atari-st"))