Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

UEFI Support #30

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

UEFI Support #30

wants to merge 10 commits into from

Conversation

penguin359
Copy link

This branch is not ready to be merged, but I thought you might get a kick out of seeing 2048 CLI ported to UEFI as an application. It might be a good thing to leave on your system's ESP partition for those days where you've broken your bootloader/kernel and just need a distraction while you think about how it fix it.

The Makefile inside src/ is written to compile it using gnu-efi. Because creating a new gfx_uefi.c driver, most of the changes were to malloc()/free() to AllocatePool()/FreePool() and changing strings to C wide-strings as used by UEFI. The rand()/srand() still needs to be properly ported, getopt() replaced, and highscore load/save implemented. However, what's on the uefi branch compiles, runs, and completes a game, albeit with some visual glitches.

Most of the changes can be easily abstracted out pretty easily, however, UEFI's use of wide strings everywhere is a little trickier to find a good solution for.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant