mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fix modstore/favourites hang by adding asynchronous lua job support
This commit is contained in:
@@ -286,6 +286,8 @@ void GUIEngine::run()
|
||||
cloudPostProcess();
|
||||
else
|
||||
sleep_ms(25);
|
||||
|
||||
m_script->Step();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -576,3 +578,9 @@ void GUIEngine::stopSound(s32 handle)
|
||||
{
|
||||
m_sound_manager->stopSound(handle);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
unsigned int GUIEngine::DoAsync(std::string serialized_fct,
|
||||
std::string serialized_params) {
|
||||
return m_script->DoAsync(serialized_fct,serialized_params);
|
||||
}
|
||||
|
Reference in New Issue
Block a user