Skip to content

Instantly share code, notes, and snippets.

@kant2002
Created March 23, 2020 21:44
Show Gist options
  • Save kant2002/171784196b7ec2d4af4c548f6510c1a4 to your computer and use it in GitHub Desktop.
Save kant2002/171784196b7ec2d4af4c548f6510c1a4 to your computer and use it in GitHub Desktop.
CoreRT UEFI startup code
public unsafe static class EfiApplication
{
[System.Runtime.RuntimeExport("EfiMain")]
unsafe static long EfiMain(IntPtr imageHandle, EFI_SYSTEM_TABLE* systemTable)
{
EfiRuntimeHost.Initialize(systemTable);
Console.Clear();
Game.Main();
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment