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

Function Update

engine/liveupdate/src/liveupdate.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 static dmExtension::Result Update(dmExtension::Params* params)
283 {
284 if (!IsLiveupdateEnabled())
285 return dmExtension::RESULT_OK;
286
287 DM_PROFILE("LiveUpdate");
288 if (g_LiveUpdate.m_JobContext)
289 JobSystemUpdate(g_LiveUpdate.m_JobContext, 0); // Flushes finished async jobs, and calls any Lua callbacks
290 return dmExtension::RESULT_OK;
291 }
292};
293
294DM_DECLARE_EXTENSION(LiveUpdateExt, "LiveUpdate", 0, 0, dmLiveUpdate::Initialize, dmLiveUpdate::Update, 0, dmLiveUpdate::Finalize)

Callers

nothing calls this directly

Calls 2

IsLiveupdateEnabledFunction · 0.85
JobSystemUpdateFunction · 0.85

Tested by

no test coverage detected