-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from kloptops/main
Forgot to add mod_REGLinux and libgl_REGLinux.txt for quirks.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# NOTE: This script uses $PWD to setup the GL4ES directory! | ||
# Before calling this, ensure you are on the port root directory, e.g.: | ||
# > gamedir="/$directory/ports/stardewvalley" | ||
# > cd "$gamedir/" | ||
|
||
if ! glxinfo | grep "OpenGL version string"; then | ||
export LIBGL_ES=2 | ||
export LIBGL_GL=21 | ||
export LIBGL_FB=4 | ||
|
||
# If the dri device does not exist, then let's not use | ||
# the gbm backend. | ||
if [ ! -e "/dev/dri/card0" ]; then | ||
export LIBGL_FB=2 | ||
fi | ||
|
||
if [ -d "$PWD/gl4es.$DEVICE_ARCH" ]; then | ||
export LD_LIBRARY_PATH="$PWD/gl4es.$DEVICE_ARCH:$LD_LIBRARY_PATH" | ||
elif [ -d "$PWD/gl4es" ]; then | ||
export LD_LIBRARY_PATH="$PWD/gl4es:$LD_LIBRARY_PATH" | ||
fi | ||
fi | ||
|
||
# This sets up the standard libs directory. | ||
if [ -d "$PWD/libs.$DEVICE_ARCH" ]; then | ||
export LD_LIBRARY_PATH="$PWD/libs.$DEVICE_ARCH:$LD_LIBRARY_PATH" | ||
elif [ -d "$PWD/libs" ]; then | ||
export LD_LIBRARY_PATH="$PWD/libs:$LD_LIBRARY_PATH" | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
## Modular - Batocera | ||
# | ||
# A modular file that is sourced for specific script lines required by ports running on Batocera. | ||
# | ||
# usage `[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"` | ||
|
||
PORT_32BIT="${PORT_32BIT:-"N"}" | ||
|
||
if [[ "$PORT_32BIT" == "Y" ]]; then | ||
export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2" | ||
export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/" | ||
fi | ||
|
||
# Use for Godot 2 | ||
GODOT2_OPTS="-r ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT} -f" | ||
|
||
# Use for Godot 3+ | ||
GODOT_OPTS="--resolution ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT} -f" | ||
|
||
pm_platform_helper() { | ||
# DO SOMETHING HERE | ||
printf "" | ||
} |