ScummVM
Base Namespace Reference

Functions

void registerDefaults ()
 Register various defaults with the ConfigManager. More...
 
Common::String parseCommandLine (Common::StringMap &settings, int argc, const char *const *argv)
 Parse the command line for options and a command; the options are stored in the map 'settings, the command (if any) is returned. More...
 
bool processSettings (Common::String &command, Common::StringMap &settings, Common::Error &err)
 Process the command line options and arguments. More...
 

Function Documentation

◆ parseCommandLine()

Common::String Base::parseCommandLine ( Common::StringMap settings,
int  argc,
const char *const *  argv 
)

Parse the command line for options and a command; the options are stored in the map 'settings, the command (if any) is returned.

◆ processSettings()

bool Base::processSettings ( Common::String command,
Common::StringMap settings,
Common::Error err 
)

Process the command line options and arguments.

Returns true if everything was handled and ScummVM should quit (e.g. because "--help" was specified, and handled).

Parameters
[in]commandthe command as returned by parseCommandLine
[in]settingsthe settings as returned by parseCommandLine
[out]errindicates whether any error occurred, and which
Returns
true if the command was completely processed and ScummVM should quit, false otherwise

◆ registerDefaults()

void Base::registerDefaults ( )

Register various defaults with the ConfigManager.