MCPcopy Create free account
hub / github.com/defold/defold / dmEngineUpdate

Function dmEngineUpdate

engine/engine/src/engine.cpp:2628–2640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2626}
2627
2628dmEngine::UpdateResult dmEngineUpdate(dmEngine::HEngine engine)
2629{
2630 if (dmEngine::IsRunning(engine))
2631 {
2632 dmEngine::Step(engine);
2633 }
2634 else {
2635 if (engine->m_RunResult.m_Action == dmEngine::RunResult::NONE)
2636 return dmEngine::RESULT_EXIT;
2637 }
2638
2639 return GetAppResultFromAction(engine->m_RunResult.m_Action);
2640}
2641
2642void dmEngineGetResult(dmEngine::HEngine engine, int* run_action, int* exit_code, int* argc, char*** argv)
2643{

Callers 1

TestEngineUpdateFunction · 0.85

Calls 3

IsRunningFunction · 0.85
GetAppResultFromActionFunction · 0.85
StepFunction · 0.70

Tested by 1

TestEngineUpdateFunction · 0.68