SDL: Add --logfile command line argument to specify logfile path
This commit is contained in:
parent
259a7bc3e0
commit
b196d26b3e
2 changed files with 22 additions and 11 deletions
|
@ -87,6 +87,9 @@ static const char HELP_STRING[] =
|
|||
#endif
|
||||
"\n"
|
||||
" -c, --config=CONFIG Use alternate configuration file\n"
|
||||
#if defined(SDL_BACKEND)
|
||||
" -l, --logfile=PATH Use alternate path for log file\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"
|
||||
" -f, --fullscreen Force full-screen mode\n"
|
||||
|
@ -544,6 +547,11 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
|
|||
DO_OPTION('c', "config")
|
||||
END_OPTION
|
||||
|
||||
#if defined(SDL_BACKEND)
|
||||
DO_OPTION('l', "logfile")
|
||||
END_OPTION
|
||||
#endif
|
||||
|
||||
DO_OPTION_INT('b', "boot-param")
|
||||
END_OPTION
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue