mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
"Freeze" Lua state after calling machine.reboot
This commit is contained in:
parent
97161f0c85
commit
e152203afd
1 changed files with 5 additions and 1 deletions
|
@ -94,10 +94,14 @@ public class MachineLib : IComponent
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int L_Reboot(IntPtr _)
|
private static int L_Reboot(IntPtr state)
|
||||||
{
|
{
|
||||||
|
var L = Lua.FromIntPtr(state);
|
||||||
|
|
||||||
RuntimeManager.Reboot();
|
RuntimeManager.Reboot();
|
||||||
|
|
||||||
|
L.Yield(0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue