Created
November 4, 2021 04:38
-
-
Save TheBuzzSaw/c0ccd1929e7c5a0c5ba85a491ec12976 to your computer and use it in GitHub Desktop.
Gemini Rue fix for Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
if [ 64 = "`getconf LONG_BIT`" ] | |
then | |
libdir='lib64' | |
else | |
libdir='lib' | |
fi | |
sed 's/liballeg\.so\.4\.4/liballeg.so.org/' <"$libdir/liballeg.so.4.4" >"$libdir/liballeg.so.org" && | |
gcc `allegro-config --cflags` -shared -fPIC -x c - -o "$libdir/liballeg.so.4.4" -Wl,"$libdir/liballeg.so.org" <<\EOF | |
#include <allegro.h> | |
#include <xalleg.h> | |
static void _init_input_handler(void) __attribute__((constructor)); | |
static void _input_handler(void) | |
{ | |
if (0 == _xwin.display) | |
return; | |
while (XQLength(_xwin.display) > 0) | |
_xwin_private_handle_input(); | |
} | |
void _init_input_handler(void) | |
{ | |
_xwin_input_handler = _input_handler; | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment