unsafe static long EfiMain(IntPtr imageHandle, EFI_SYSTEM_TABLE *systemTable) { EfiRuntimeHost.Initialize(systemTable); // Change to 2 * 1000 once proper time will be implemented. Thread.Sleep(40 * 1000); Console.Clear(); Game.Main(); return(0); }
static unsafe void EfiMain(IntPtr imageHandle, EFI_SYSTEM_TABLE *systemTable) { EfiRuntimeHost.Initialize(imageHandle, systemTable); ManagedMain(0, default); // Debug break to EFI runtime does not restart. while (true) { } }
static long EfiMain(IntPtr imageHandle, EFI_SYSTEM_TABLE *systemTable) { string hello = "Hello world!"; fixed(char *pHello = hello) { systemTable->ConOut->OutputString(systemTable->ConOut, pHello); } while (true) { ; } }
private static long EfiMain(EFI_HANDLE imageHandle, EFI_SYSTEM_TABLE *systemTable) { ImageHandle = imageHandle; SystemTable = systemTable; //Prevent system reboot after 5 minutes SystemTable->BootServices->SetWatchdogTimer(0, 0); //Console Setup SetupExtendedConsoleinput(out In); Out = SystemTable->ConOut; Internal.Console.ConsoleSetup(); Main(); while (true) { ; } }
public static void Initialize(EFI_SYSTEM_TABLE *systemTable) { SystemTable = systemTable; }
public static void Initialize(IntPtr imageHandle, EFI_SYSTEM_TABLE *systemTable) { SystemTable = systemTable; }