@ -69,8 +69,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
{
// Create a local alias for brevity
namespace bpo = boost : : program_options ;
typedef Files : : EscapeHashString string ;
typedef std : : vector < string > StringsVector ;
typedef std : : vector < Files : : EscapeHashString > StringsVector ;
bpo : : options_description desc ( " Syntax: openmw <options> \n Allowed options " ) ;
@ -80,16 +79,16 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
( " data " , bpo : : value < Files : : PathContainer > ( ) - > default_value ( Files : : PathContainer ( ) , " data " )
- > multitoken ( ) - > composing ( ) , " set data directories (later directories have higher priority) " )
( " data-local " , bpo : : value < string> ( ) - > default_value ( " " ) ,
( " data-local " , bpo : : value < File s: : EscapeHashS tring> ( ) - > default_value ( " " ) ,
" set local data directory (highest priority) " )
( " fallback-archive " , bpo : : value < StringsVector > ( ) - > default_value ( StringsVector ( ) , " fallback-archive " )
- > multitoken ( ) , " set fallback BSA archives (later archives have higher priority) " )
( " resources " , bpo : : value < string> ( ) - > default_value ( " resources " ) ,
( " resources " , bpo : : value < File s: : EscapeHashS tring> ( ) - > default_value ( " resources " ) ,
" set resources directory " )
( " start " , bpo : : value < std : : string> ( ) - > default_value ( " " ) ,
( " start " , bpo : : value < File s: : E scapeHashS tring> ( ) - > default_value ( " " ) ,
" set initial cell " )
( " content " , bpo : : value < StringsVector > ( ) - > default_value ( StringsVector ( ) , " " )
@ -110,7 +109,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
( " script-console " , bpo : : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " enable console-only script functionality " )
( " script-run " , bpo : : value < string> ( ) - > default_value ( " " ) ,
( " script-run " , bpo : : value < File s: : EscapeHashS tring> ( ) - > default_value ( " " ) ,
" select a file containing a list of console commands that is executed on startup " )
( " script-warn " , bpo : : value < int > ( ) - > implicit_value ( 1 )
@ -126,7 +125,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
( " script-blacklist-use " , bpo : : value < bool > ( ) - > implicit_value ( true )
- > default_value ( true ) , " enable script blacklisting " )
( " load-savegame " , bpo : : value < string> ( ) - > default_value ( " " ) ,
( " load-savegame " , bpo : : value < File s: : EscapeHashS tring> ( ) - > default_value ( " " ) ,
" load a save game file on game startup (specify an absolute filename or a filename relative to the current working directory) " )
( " skip-menu " , bpo : : value < bool > ( ) - > implicit_value ( true )
@ -138,7 +137,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
( " fs-strict " , bpo : : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " strict file system handling (no case folding) " )
( " encoding " , bpo : : value < string> ( ) - >
( " encoding " , bpo : : value < File s: : EscapeHashS tring> ( ) - >
default_value ( " win1252 " ) ,
" Character encoding used in OpenMW game messages: \n "
" \n \t win1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, Croatian, Serbian (Latin script), Romanian and Albanian languages \n "
@ -242,7 +241,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
engine . setScriptConsoleMode ( variables [ " script-console " ] . as < bool > ( ) ) ;
engine . setStartupScript ( variables [ " script-run " ] . as < std : : string > ( ) ) ;
engine . setWarningsMode ( variables [ " script-warn " ] . as < int > ( ) ) ;
engine . setScriptBlacklist ( string: : toStdStringVector ( variables [ " script-blacklist " ] . as < StringsVector > ( ) ) ) ;
engine . setScriptBlacklist ( File s: : EscapeHashS tring: : toStdStringVector ( variables [ " script-blacklist " ] . as < StringsVector > ( ) ) ) ;
engine . setScriptBlacklistUse ( variables [ " script-blacklist-use " ] . as < bool > ( ) ) ;
engine . setSaveGameFile ( variables [ " load-savegame " ] . as < std : : string > ( ) ) ;