Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Hexen 2, condense libs, fix ogg playback on JelOS #94

Merged
merged 2 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions ports/hexen2/Hexen 2 - Portal of Praevus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ get_controls

GAMEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/hexen2"

if [ $DEVICE_NAME == 'x55' ] || [ $DEVICE_NAME == 'RG353P' ]; then
GPTOKEYB_CONFIG="$GAMEDIR/hexen2triggers.gptk"
else
GPTOKEYB_CONFIG="$GAMEDIR/hexen2.gptk"
fi

$ESUDO chmod 777 -R $GAMEDIR/*

ADDLPARAMS="-conwidth 340 -lm_2 +viewsize 120 +gl_glows 1 +gl_extra_dynamic_lights 1 +gl_missile_glows 1 +gl_other_glows 1 +gl_colored_dynamic_lights 1 +gl_coloredlight 2 +r_waterwarp 0 +showfps 0"
Expand All @@ -29,8 +35,8 @@ $ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput

# System (Also prepare runtime directories for User and Pulse Audio)
export LD_LIBRARY_PATH=$GAMEDIR/sdl12-compat:$GAMEDIR/gl4es:$GAMEDIR/lib

export LD_LIBRARY_PATH=$GAMEDIR/lib:$LD_LIBRARY_PATH
[ -f "$GAMEDIR/lib/libasound.so.2" ] && $ESUDO rm -f $GAMEDIR/lib/libasound.so.2 $GAMEDIR/lib/libvorbis.so.0 $GAMEDIR/lib/libvorbisenc.so.2 $GAMEDIR/lib/libvorbisfile.so.3
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

# gl4es
Expand All @@ -44,7 +50,7 @@ $ESUDO rm $GAMEDIR/log.txt
$ESUDO rm -rf ~/.hexen2
$ESUDO ln -s /$GAMEDIR/conf/.hexen2 ~/

$GPTOKEYB "glhexen2" -c "$GAMEDIR/hexen2.gptk" &
$GPTOKEYB "glhexen2" -c "$GPTOKEYB_CONFIG" &
./glhexen2 -width $DISPLAY_WIDTH -height $DISPLAY_HEIGHT $ADDLPARAMS -basedir ./ $RUNMOD 2>&1 | tee -a ./log.txt

$ESUDO kill -9 $(pidof gptokeyb)
Expand Down
12 changes: 9 additions & 3 deletions ports/hexen2/Hexen 2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ get_controls

GAMEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/hexen2"

if [ $DEVICE_NAME == 'x55' ] || [ $DEVICE_NAME == 'RG353P' ]; then
GPTOKEYB_CONFIG="$GAMEDIR/hexen2triggers.gptk"
else
GPTOKEYB_CONFIG="$GAMEDIR/hexen2.gptk"
fi

$ESUDO chmod 777 -R $GAMEDIR/*

ADDLPARAMS="-conwidth 340 -lm_2 +viewsize 120 +gl_glows 1 +gl_extra_dynamic_lights 1 +gl_missile_glows 1 +gl_other_glows 1 +gl_colored_dynamic_lights 1 +gl_coloredlight 2 +r_waterwarp 0 +showfps 0"
Expand All @@ -29,8 +35,8 @@ $ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput

# System
export LD_LIBRARY_PATH=$GAMEDIR/sdl12-compat:$GAMEDIR/gl4es:$GAMEDIR/lib

export LD_LIBRARY_PATH=$GAMEDIR/lib:$LD_LIBRARY_PATH
[ -f "$GAMEDIR/lib/libasound.so.2" ] && $ESUDO rm -f $GAMEDIR/lib/libasound.so.2 $GAMEDIR/lib/libvorbis.so.0 $GAMEDIR/lib/libvorbisenc.so.2 $GAMEDIR/lib/libvorbisfile.so.3
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

# gl4es
Expand All @@ -44,7 +50,7 @@ $ESUDO rm $GAMEDIR/log.txt
$ESUDO rm -rf ~/.hexen2
$ESUDO ln -s /$GAMEDIR/conf/.hexen2 ~/

$GPTOKEYB "glhexen2" -c "$GAMEDIR/hexen2.gptk" &
$GPTOKEYB "glhexen2" -c "$GPTOKEYB_CONFIG" &
./glhexen2 -width $DISPLAY_WIDTH -height $DISPLAY_HEIGHT $ADDLPARAMS -basedir ./ $RUNMOD 2>&1 | tee -a ./log.txt

$ESUDO kill -9 $(pidof gptokeyb)
Expand Down
Binary file removed ports/hexen2/hexen2/lib/libasound.so.2
Binary file not shown.
Binary file removed ports/hexen2/hexen2/lib/libvorbis.so.0
Binary file not shown.
Binary file removed ports/hexen2/hexen2/lib/libvorbisenc.so.2
Binary file not shown.
Binary file removed ports/hexen2/hexen2/lib/libvorbisfile.so.3
Binary file not shown.
Loading