Пример #1
0
 public static void ShowBootscreen(this Cosmos.System.Kernel krnl, string OSname, Bootscreen.Effect efx,
                                   ConsoleColor color, int ticks = 10000000)
 {
     Bootscreen.Show(OSname, efx, color, ticks);
 }
Пример #2
0
 public static void AllocMemory(this Cosmos.System.Kernel krnl, uint aLength)
 {
     Cosmos.Core.Heap.MemAlloc(aLength);
 }
Пример #3
0
 public static uint GetMemory(this Cosmos.System.Kernel krnl)
 {
     return(Cosmos.Core.CPU.GetAmountOfRAM() + 1);
 }
Пример #4
0
 public static void SleepMilliseconds(this Cosmos.System.Kernel krnl, uint value)
 {
     Core.PIT.SleepMilliseconds(value);
 }
Пример #5
0
 public static void Shutdown(this Cosmos.System.Kernel krnl)
 {
     Core.ACPI.Shutdown();
 }
Пример #6
0
 public static void Reboot(this Cosmos.System.Kernel krnl)
 {
     Core.ACPI.Reboot();
 }
Пример #7
0
 //public static void Reboot(this Cosmos.System.Kernel krnl) { Core.ACPI.Reboot(); }
 //public static void Shutdown(this Cosmos.System.Kernel krnl) { Core.ACPI.Shutdown(); }
 //public static void SleepTicks(this Cosmos.System.Kernel krnl, int amount) { Time.SleepTicks(amount); }
 public static void SleepSeconds(this Cosmos.System.Kernel krnl, uint amount)
 {
     Time.Wait((int)amount);
 }