mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
COMMON: Adding iconspath parameter to the command line
This commit is contained in:
committed by
Eugene Sandulenko
parent
19fa715408
commit
87728fa9b6
@@ -151,6 +151,7 @@ static const char HELP_STRING[] =
|
||||
" pce, segacd, wii, windows)\n"
|
||||
" --savepath=PATH Path to where saved games are stored\n"
|
||||
" --extrapath=PATH Extra path to additional game data\n"
|
||||
" --iconspath=PATH Path to additional icons for the launcher grid view\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"
|
||||
@@ -838,6 +839,15 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
||||
}
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION("iconspath")
|
||||
Common::FSNode path(option);
|
||||
if (!path.exists()) {
|
||||
usage("Non-existent icons path '%s'", option);
|
||||
} else if (!path.isReadable()) {
|
||||
usage("Non-readable icons path '%s'", option);
|
||||
}
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION("md5-path")
|
||||
// While the --md5 command expect a file name, the --md5mac may take a base name.
|
||||
// Thus we do not check that the file exists here.
|
||||
@@ -1847,6 +1857,7 @@ bool processSettings(Common::String &command, Common::StringMap &settings, Commo
|
||||
"subtitles",
|
||||
"savepath",
|
||||
"extrapath",
|
||||
"iconspath",
|
||||
"screenshotpath",
|
||||
"soundfont",
|
||||
"multi-midi",
|
||||
|
||||
Reference in New Issue
Block a user