Go to the documentation of this file.
43 static bool signaled =
false;
71 installCrashHandler();
75 std::locale::global(std::locale());
82 std::string startupOptions;
83 for(
uint i=1;i<args.size();++i) {
84 const std::string& arg = args[i];
85 startupOptions +=
" ";
86 startupOptions += arg;
88 if(startupOptions.length() > 0)
142 signal(SIGTERM, SIG_DFL);
143 signal(SIGINT, SIG_DFL);
176 #elif defined(__APPLE__)
EventDispatcher g_dispatcher
void callGlobalField(const std::string &global, const std::string &field, const T &... args)
std::string m_startupOptions
void init(const char *argv0)
ResourceManager g_resources
void exitSignalHandler(int sig)
EventPtr addEvent(const std::function< void()> &callback, bool pushFront=false)
virtual void init(std::vector< std::string > &args)
stdext::boolean< false > m_stopping
std::string m_appCompactName
stdext::boolean< false > m_terminated
AsyncDispatcher g_asyncDispatcher
void registerLuaFunctions()
void info(const std::string &what)