freebsd-ports/games/quakeforge/files/patch-nq__source__sys_sdl.c
Alejandro Pulver 07d8ff8072 - Fix menu loading (console_client.so) in SDL clients: apply fix from
ports/89065 (which was just for the OpenGL and X11 clients) to manually
  export the Key_Progs_Init symbol.

Reported by:	scalopus@gmail.com
2006-12-30 20:10:16 +00:00

20 lines
467 B
C

--- nq/source/sys_sdl.c.orig Tue Jan 20 00:47:26 2004
+++ nq/source/sys_sdl.c Sat Dec 30 16:44:41 2006
@@ -63,6 +63,7 @@
#include "QF/console.h"
#include "QF/qargs.h"
#include "QF/sys.h"
+#include "QF/progs.h"
#include "client.h"
#include "compat.h"
@@ -106,6 +107,9 @@
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
#endif
}
+
+extern void Key_Progs_Init (progs_t *pr);
+void (*x)() = Key_Progs_Init;
#ifndef SDL_main
# define SDL_main main