示例#1
0
int main(int argc, char *argv[])
{
    #ifdef DEF_CONSOLE
        ActivateConsole();
    #endif

    // TODO: Somehow on my computer output to stderr is not seen
    // So I made this redirection. If intended output is going
    // to be different, remove me
    #ifdef WIN32
        *stderr = *stdout;
    #endif

    int ret = Game::getInstance().onExecute();

    #ifdef WIN32
        if (ret != 0) getchar(); // pause to see the output
    #endif

    return ret;
}
示例#2
0
//-----------------------------------------------------------------------------------
void Console::ToggleConsole()
{
    m_isActive ? DeactivateConsole() : ActivateConsole();
}