diff --git a/ports/spearmintmountain/Spearmint Mountain.sh b/ports/spearmintmountain/Spearmint Mountain.sh index 4fd6ca789..98c32daa9 100644 --- a/ports/spearmintmountain/Spearmint Mountain.sh +++ b/ports/spearmintmountain/Spearmint Mountain.sh @@ -1,6 +1,6 @@ #!/bin/bash -# PORTMASTER: spearmintmountain.zip, Spearmint_Mountain.sh -# Below we assign the source of the control folder (which is the PortMaster folder) based on the distro: +# PORTMASTER: spearmintmountain.zip, Spearmint Mountain.sh + if [ -d "/opt/system/Tools/PortMaster/" ]; then controlfolder="/opt/system/Tools/PortMaster" elif [ -d "/opt/tools/PortMaster/" ]; then @@ -9,35 +9,22 @@ else controlfolder="/roms/ports/PortMaster" fi -# We source the control.txt file contents here -# The $ESUDO, $directory, $param_device and necessary -# Sdl configuration controller configurations will be sourced from the control.txt source $controlfolder/control.txt - -# We pull the controller configs from the get_controls function from the control.txt file here +source $controlfolder/device_info.txt get_controls +[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt" $ESUDO chmod 666 /dev/tty0 -# We check on emuelec based CFWs the OS_NAME -[ -f "/etc/os-release" ] && source "/etc/os-release" - -if [ "$OS_NAME" == "JELOS" ]; then - export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2" - export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/" -fi - -GAMEDIR=/$directory/ports/spearmintmountain +GAMEDIR="/$directory/ports/spearmintmountain" -# We log the execution of the script into log.txt -exec > >(tee "$GAMEDIR/log.txt") 2>&1 - -# Port specific additional libraries should be included within the port's directory in a separate subfolder named libs. -# Prioritize the armhf libs to avoid conflicts with aarch64 export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs" export GMLOADER_DEPTH_DISABLE=1 export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/" +# We log the execution of the script into log.txt +exec > >(tee "$GAMEDIR/log.txt") 2>&1 + cd $GAMEDIR # Check for file existence before trying to manipulate them: diff --git a/ports/spearmintmountain/spearmintmountain/gamedata/.gitkeep b/ports/spearmintmountain/spearmintmountain/gamedata/.gitkeep new file mode 100644 index 000000000..e69de29bb