mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
BASE: Add command line option to set screenshot path
Note that since the ConfMan transient domain is cleared when opening the launcher, this only work when specifying a game on the command line as well, and only until returning to the launcher.
This commit is contained in:
parent
f8d69272db
commit
54c84b8700
@ -98,6 +98,7 @@ static const char HELP_STRING[] =
|
||||
" -c, --config=CONFIG Use alternate configuration file\n"
|
||||
#if defined(SDL_BACKEND)
|
||||
" -l, --logfile=PATH Use alternate path for log file\n"
|
||||
" --screenshotpath=PATH Specify path where screenshot files are created\n"
|
||||
#endif
|
||||
" -p, --path=PATH Path to where the game is installed\n"
|
||||
" -x, --save-slot[=NUM] Save game slot to load (default: autosave)\n"
|
||||
@ -597,6 +598,15 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
||||
#if defined(SDL_BACKEND)
|
||||
DO_OPTION('l', "logfile")
|
||||
END_OPTION
|
||||
|
||||
DO_LONG_OPTION("screenshotpath")
|
||||
Common::FSNode path(option);
|
||||
if (!path.exists()) {
|
||||
usage("Non-existent game path '%s'", option);
|
||||
} else if (!path.isWritable()) {
|
||||
usage("Non-writable screenshot path '%s'", option);
|
||||
}
|
||||
END_OPTION
|
||||
#endif
|
||||
|
||||
DO_OPTION_INT('b', "boot-param")
|
||||
|
@ -157,6 +157,7 @@ Short options are listed where they are available.
|
||||
``--render-mode=MODE``,,":ref:`Enables additional render modes <render>`"
|
||||
``--save-slot=NUM``,``-x``,"Specifies the saved game slot to load (default: autosave)"
|
||||
``--savepath=PATH``,,":ref:`Specifies path to where saved games are stored <savepath>`"
|
||||
``--screenshotpath=PATH``,,"Specify path where screenshot files are created (SDL backend only)"
|
||||
``--sfx-volume=NUM``,``-s``,":ref:`Sets the sfx volume <sfx>`, 0-255 (default: 192)"
|
||||
``--soundfont=FILE``,,":ref:`Selects the SoundFont for MIDI playback. <soundfont>`. Only supported by some MIDI drivers."
|
||||
``--speech-volume=NUM``,``-r``,":ref:`Sets the speech volume <speechvol>`, 0-255 (default: 192)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user