| 1857 | } |
| 1858 | |
| 1859 | static void Exit(HEngine engine, int32_t code) |
| 1860 | { |
| 1861 | engine->m_Alive = false; |
| 1862 | engine->m_RunResult.m_ExitCode = code; |
| 1863 | engine->m_RunResult.m_Action = dmEngine::RunResult::EXIT; |
| 1864 | } |
| 1865 | |
| 1866 | // Return true if the frame should be skipped |
| 1867 | static bool UpdateFrameThrottle(HEngine engine, float dt, bool has_input) |