Lua_Play now works in coroutines

This commit is contained in:
Krzosa Karol
2024-08-14 15:08:27 +02:00
parent 8cd754c923
commit a84a7073dc
4 changed files with 55 additions and 39 deletions

View File

@@ -331,6 +331,11 @@ function AddCo(f)
return Coroutines[i]
end
function AddTest(f)
local ff = AddCo(f)
coroutine.resume(ff)
end
function OnUpdate()
local new_co_list = {}
for key, co in pairs(Coroutines) do
@@ -343,6 +348,7 @@ function OnUpdate()
Coroutines = new_co_list
end
)==";
void GenerateConfig() {