diff --git a/Capy64/Runtime/Libraries/MachineLib.cs b/Capy64/Runtime/Libraries/MachineLib.cs index e92b502..3eb55d5 100644 --- a/Capy64/Runtime/Libraries/MachineLib.cs +++ b/Capy64/Runtime/Libraries/MachineLib.cs @@ -94,10 +94,14 @@ public class MachineLib : IComponent return 0; } - private static int L_Reboot(IntPtr _) + private static int L_Reboot(IntPtr state) { + var L = Lua.FromIntPtr(state); + RuntimeManager.Reboot(); + L.Yield(0); + return 0; }