From 15e149fe8eb248a1343c52170508ea71d80b8278 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Fri, 1 Sep 2023 14:18:44 +0200 Subject: [PATCH] Remove OpenBSD patch, as it's no longer required --- README.txt | 2 +- patches/openbsd/generic.patch | 54 ----------------------------------- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 patches/openbsd/generic.patch diff --git a/README.txt b/README.txt index 629a8d8..0e10f7c 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ A software accelerated (CPU-only) game engine for older computers. It uses a layer of abstraction, so different implementations can be ported to it. It primarily uses SDL2. This can also be used to more easily port the engine to different consoles. -Compiles for Linux. If you want to compile for OpenBSD, run: git apply patches/openbsd/generic.patch +Can be compiled for Linux, OpenBSD and Windows. > Prerequisites, Debian/Ubuntu: sudo apt install python3-toml libsdl2-dev liblua5.3-dev diff --git a/patches/openbsd/generic.patch b/patches/openbsd/generic.patch deleted file mode 100644 index bd419c4..0000000 --- a/patches/openbsd/generic.patch +++ /dev/null @@ -1,54 +0,0 @@ -diff --git a/lua_translate b/lua_translate -index b16ab97..f79b4d0 100755 ---- a/lua_translate -+++ b/lua_translate -@@ -23,9 +23,9 @@ functions = toml.loads(open("src/values/functions.toml").read()) - ofile = open("src/lua.c","w") - - ofile.write('''\ --#include --#include --#include -+#include -+#include -+#include - lua_State * engine_lua_state; - #include "lua_manual.c" - -diff --git a/run b/run -index 03605cc..5d58be7 100755 ---- a/run -+++ b/run -@@ -1,5 +1,5 @@ - #!/usr/bin/env bash - set -e - ./lua_translate --gcc src/main.c -g -lSDL2 -llua5.3 -o engine -O3 -Werror -Wall -+egcc src/main.c -g -lSDL2 -llua5.3 -o engine -O3 -Werror -Wall -I /usr/local/include - exec ./engine -diff --git a/src/frontend/sdl/main.c b/src/frontend/sdl/main.c -index 74578e3..e644e57 100644 ---- a/src/frontend/sdl/main.c -+++ b/src/frontend/sdl/main.c -@@ -131,4 +131,4 @@ void engine_window_destroy(struct ENGINE_WINDOW * window) { - engine_memory_free(window -> texture); - engine_memory_free(window -> fe_window); - engine_memory_free(window); --} -\ No newline at end of file -+} -diff --git a/src/lua.c b/src/lua.c -index 00317da..eef8e43 100644 ---- a/src/lua.c -+++ b/src/lua.c -@@ -1,6 +1,6 @@ --#include --#include --#include -+#include -+#include -+#include - lua_State * engine_lua_state; - #include "lua_manual.c" - -