Remove OpenBSD patch, as it's no longer required

This commit is contained in:
Fierelier 2023-09-01 14:18:44 +02:00
parent b02fc4aed9
commit 15e149fe8e
2 changed files with 1 additions and 55 deletions

View File

@ -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

View File

@ -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 <lua5.3/lua.h>
-#include <lua5.3/lualib.h>
-#include <lua5.3/lauxlib.h>
+#include <lua-5.3/lua.h>
+#include <lua-5.3/lualib.h>
+#include <lua-5.3/lauxlib.h>
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 <lua5.3/lua.h>
-#include <lua5.3/lualib.h>
-#include <lua5.3/lauxlib.h>
+#include <lua-5.3/lua.h>
+#include <lua-5.3/lualib.h>
+#include <lua-5.3/lauxlib.h>
lua_State * engine_lua_state;
#include "lua_manual.c"