@ -92,39 +92,43 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
( " plugin " , bpo : : value < StringsVector > ( ) - > default_value ( StringsVector ( ) , " " )
- > multitoken ( ) , " plugin file(s) " )
( " fps " , b oost: : pr ogram_options : : value < int > ( ) - > implicit_value ( 1 )
( " fps " , b po: : value < int > ( ) - > implicit_value ( 1 )
- > default_value ( 0 ) , " fps counter detail (0 = off, 1 = fps counter, 2 = full detail) " )
( " anim-verbose " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " anim-verbose " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " output animation indices files " )
( " debug " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " debug " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " debug mode " )
( " nosound " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " nosound " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " disable all sounds " )
( " script-verbose " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " script-verbose " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " verbose script output " )
( " new-game " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " new-game " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " activate char gen/new game mechanics " )
( " script-all " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " script-all " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " compile all scripts (excluding dialogue scripts) at startup " )
( " fs-strict " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " fs-strict " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " strict file system handling (no case folding) " )
( " encoding " , b oost: : pr ogram_options : : value < std : : string > ( ) - >
( " encoding " , b po: : value < std : : string > ( ) - >
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 "
" \n \t win1251 - Cyrillic alphabet such as Russian, Bulgarian, Serbian Cyrillic and other languages \n "
" \n \t win1252 - Western European (Latin) alphabet, used by default " )
( " report-focus " , b oost: : pr ogram_options : : value < bool > ( ) - > implicit_value ( true )
( " report-focus " , b po: : value < bool > ( ) - > implicit_value ( true )
- > default_value ( false ) , " write name of focussed object to cout " )
( " fallback " , bpo : : value < StringsVector > ( ) - > default_value ( StringsVector ( ) , " " )
- > multitoken ( ) - > composing ( ) , " fallback values " )
;
bpo : : parsed_options valid_opts = bpo : : command_line_parser ( argc , argv )
@ -232,6 +236,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
engine . setCompileAll ( variables [ " script-all " ] . as < bool > ( ) ) ;
engine . setReportFocus ( variables [ " report-focus " ] . as < bool > ( ) ) ;
engine . setAnimationVerbose ( variables [ " anim-verbose " ] . as < bool > ( ) ) ;
engine . setFallbackValues ( variables [ " fallback " ] . as < std : : vector < std : : string > > ( ) ) ;
return true ;
}