Files
CMLeonOS/Power.cs

25 lines
430 B
C#
Raw Normal View History

2026-03-01 17:03:49 +08:00
using Sys = Cosmos.System;
namespace CMLeonOS
{
public static class Power
{
public static void Reboot()
{
Sys.Power.Reboot();
}
public static void Shutdown(bool reboot = false)
{
if (reboot)
{
Sys.Power.Reboot();
}
else
{
Sys.Power.Shutdown();
}
}
}
}