int Core::RunCmdTool(int argc, char * argv[], AppHandle handle) { CoreWin32Platform * core = new CoreWin32Platform(); //core->CreateWin32Window(handle); //core->Run(); core->EnableConsoleMode(); core->CreateSingletons(); core->InitArgs(); Logger::Instance()->EnableConsoleMode(); FrameworkDidLaunched(); FrameworkWillTerminate(); core->ReleaseSingletons(); #ifdef ENABLE_MEMORY_MANAGER if (DAVA::MemoryManager::Instance() != 0) { DAVA::MemoryManager::Instance()->FinalLog(); } #endif return 0; }
int Core::Run(int argc, char * argv[], AppHandle handle) { CoreWin32Platform * core = new CoreWin32Platform(); core->CreateSingletons(); bool windowCreated = core->CreateWin32Window(handle); if(windowCreated) { core->InitArgs(); core->Run(); core->ReleaseSingletons(); #ifdef ENABLE_MEMORY_MANAGER if (DAVA::MemoryManager::Instance() != 0) { DAVA::MemoryManager::Instance()->FinalLog(); } #endif } CloseHandle(core->hMutex); return 0; }