1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 22:57:35 +00:00

Ports: Add quake3 port :^)

This commit is contained in:
Jesse Buhagiar 2022-03-25 22:37:46 +11:00 committed by Andreas Kling
parent c08dfe063a
commit e2f1da8cec
11 changed files with 571 additions and 0 deletions

View file

@ -0,0 +1,48 @@
# Patches for quake3 on SerenityOS
## `0001-Meta-Refactor-Makefile-to-support-Serenity.patch`
Meta: Refactor Makefile to support Serenity
## `0002-Engine-Add-Serenity-so-q_platform.h.patch`
Engine: Add Serenity so `q_platform.h`
## `0003-Engine-Add-sys-select.h-include-for-Serenity.patch`
Engine: Add `<sys/select.h>` include for Serenity
QuakeIII makes extensive use of the `select()` syscall for its' netcode.
It seems that Linux has this in a header that isn't `<sys/select.h>`
like us, which results in an implicit declaration error.
## `0004-Meta-Add-ldl-library-for-Serenity-target.patch`
Meta: Add `-ldl` library for Serenity target
## `0005-Engine-Move-ifdef-to-more-sensible-location.patch`
Engine: Move `#ifdef` to more sensible location
No linker errors in this dojo!
## `0006-Meta-Add-ARCH-to-TOOLS_CFLAGS.patch`
Meta: Add ARCH to TOOLS_CFLAGS
## `0007-Meta-Remove-extension-from-main-game-exe.patch`
Meta: Remove extension from main game exe
## `0008-Engine-Use-Serenity-style-PROT_EXEC-mmap.patch`
Engine: Use Serenity style PROT_EXEC mmap
The code for this was really old and crusty, so let's `ifdef` it out and
use some more friendly Serenity style memory code.