OpenMW
Classes | Namespaces | Functions
apps/openmw/main.cpp File Reference
#include <iostream>
#include <cstdio>
#include <components/files/configurationmanager.hpp>
#include <SDL.h>
#include "engine.hpp"
#include <csignal>
#include <OSX/macUtils.h>
#include "config.hpp"
#include <boost/version.hpp>

Classes

struct  FallbackMap

Namespaces

namespace  boost

Functions

int cc_install_handlers (int argc, char **argv, int num_signals, int *sigs, const char *logfile, int(*user_info)(char *, char *))
int is_debugger_attached (void)
template<>
boost::filesystem::path boost::lexical_cast< boost::filesystem::path, std::string > (const std::string &arg)
void validate (boost::any &v, std::vector< std::string > const &tokens, FallbackMap *, int)
bool parseOptions (int argc, char **argv, OMW::Engine &engine, Files::ConfigurationManager &cfgMgr)
 Parses application command line and calls Cfg::ConfigurationManager to parse configuration files.
int main (int argc, char **argv)

Function Documentation

int cc_install_handlers ( int  argc,
char **  argv,
int  num_signals,
int *  sigs,
const char *  logfile,
int(*)(char *, char *)  user_info 
)
int is_debugger_attached ( void  )
int main ( int  argc,
char **  argv 
)
bool parseOptions ( int  argc,
char **  argv,
OMW::Engine engine,
Files::ConfigurationManager cfgMgr 
)

Parses application command line and calls Cfg::ConfigurationManager to parse configuration files.

Results are directly written to Engine class.

Return values:
true- Everything goes OK
false- Error
void validate ( boost::any &  v,
std::vector< std::string > const &  tokens,
FallbackMap ,
int   
)