aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/commandLine.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index b8bb81a8d0..fb6c5f0b47 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -102,6 +102,7 @@ static const char HELP_STRING[] =
" acorn, amiga, atari, c64, fmtowns, nes, mac, pc,\n"
" pce, segacd, windows)\n"
" --savepath=PATH Path to where savegames are stored\n"
+ " --extrapath=PATH Extra path to additional game data\n"
" --soundfont=FILE Select the SoundFont for MIDI playback (only\n"
" supported by some MIDI drivers)\n"
" --multi-midi Enable combination Adlib and native MIDI\n"
@@ -471,6 +472,15 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar
}
END_OPTION
+ DO_LONG_OPTION("extrapath")
+ FilesystemNode path(option);
+ if (!path.exists()) {
+ usage("Non-existent extra path '%s'", option);
+ } else if (!path.isReadable()) {
+ usage("Non-readable extra path '%s'", option);
+ }
+ END_OPTION
+
DO_LONG_OPTION_INT("talkspeed")
END_OPTION