aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTravis Howell2003-09-05 16:12:54 +0000
committerTravis Howell2003-09-05 16:12:54 +0000
commit0a9d234b52c5ddd4ae4807760f2bc6d11e4ba8c0 (patch)
tree375881caca25787f3f3c894fda84e3468d21beb8 /common
parentcd9496ab3aee61cd9f86043368b3393bfb3353de (diff)
downloadscummvm-rg350-0a9d234b52c5ddd4ae4807760f2bc6d11e4ba8c0.tar.gz
scummvm-rg350-0a9d234b52c5ddd4ae4807760f2bc6d11e4ba8c0.tar.bz2
scummvm-rg350-0a9d234b52c5ddd4ae4807760f2bc6d11e4ba8c0.zip
Fix platform command line and add to readme
svn-id: r10011
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 0490bce945..a3fd82a58b 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -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"))