Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Portmaster fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
r3claimer committed Dec 8, 2023
1 parent c74f32c commit ac35b41
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
13 changes: 12 additions & 1 deletion packages/apps/portmaster/scripts/portmaster_compatibility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,20 @@ case "${QUIRK_DEVICE}" in
done;
;;
*)
#Remove gl4es libs on devices that support OpenGL
#Remove gl4es libs on devices that support OpenGL and sed any port that refrences it
rm -rf /storage/roms/ports/*/lib*/libEGL*
rm -rf /storage/roms/ports/*/lib*/libGL*
for port in /storage/roms/ports/*.sh; do
sed -i '/^export SDL_VIDEO_GL_DRIVER/c\#export SDL_VIDEO_GL_DRIVER"' "$port"
sed -i '/^export SDL_VIDEO_EGL_DRIVER/c\#export SDL_VIDEO_EGL_DRIVER' "$port"
echo Fixing: "$port";
done;

#Remove S922X fix if exists
for port in /storage/roms/ports/*.sh; do
sed -i '/get_controls && export/c\get_controls' "$port"
echo Fixing: "$port";
done;
;;
esac
fi
3 changes: 3 additions & 0 deletions packages/apps/portmaster/scripts/start_portmaster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ fi
#Make sure permissions are correct in the PortMaster folder
find /storage/roms/ports/ -not -perm 755 -exec chmod 755 {} \;

#Fix compatability for some portmaster ports
/usr/bin/portmaster_compatibility.sh

#Start PortMaster
@LIBEGL@
cd /storage/roms/ports/PortMaster
Expand Down
5 changes: 2 additions & 3 deletions packages/apps/portmaster/sources/control.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)

# This file can and should be sourced by ports for various parameters to
# This file can and should be sourced by ports for various parameters to
# minimize script customizations and allow for easier future updates
# like adding additional supported devices.
# Thanks to JohnnyonFlame, dhwz, romadu, and shantigilbert for the
# Thanks to JohnnyonFlame, dhwz, romadu, and shantigilbert for the
# suggestion and assistance with this.
# Source used for gptokeyb available at
# https://github.com/christianhaitian/gptokeyb
Expand Down Expand Up @@ -89,7 +89,6 @@ get_controls() {

# Set compatability libs and run compatability script
export LD_LIBRARY_PATH=${clibs}
/usr/bin/portmaster_compatibility.sh

# Now find any controller mapped on emulationstation...
/storage/.config/PortMaster/mapper.txt SDL_GAMECONTROLLERCONFIG_FILE > /dev/null 2>&1
Expand Down

0 comments on commit ac35b41

Please sign in to comment.