adc893de6e
- Updated README with detailed instructions for creating a dedicated Ansible user on Linux, including SSH key setup and passwordless sudo. - Added userConfigurations.json for Steam ROM Manager with configurations for various gaming consoles. - Introduced scripts for managing Gamescope and Steam sessions, including launch scripts for various emulators (Genesis, PSP, RPCS3, SNES). - Created systemd service for Gamescope session management. - Developed Ansible playbook for configuring Fedora for optimized Sunshine and Gamescope streaming, including user setup and system configurations. - Updated Prometheus configuration to reflect changes in exporter targets. - Commented out the Devolo exporter module in Terraform configuration for future reference.
21 lines
783 B
Bash
21 lines
783 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
LOGFILE="$HOME/.local/logs/retroarch-ppsspp.log"
|
|
|
|
log() { echo "[$(date --iso-8601=seconds)] $*" | tee -a "$LOGFILE"; }
|
|
RETROARCH_HOME="$HOME/.local/share/Steam/steamapps/common/RetroArch"
|
|
if [ ! -d "$RETROARCH_HOME" ]; then
|
|
log "ERROR: RetroArch directory not found at $RETROARCH_HOME, install it via Steam"
|
|
exit 127
|
|
fi
|
|
|
|
RETROARCH_BIN="$RETROARCH_HOME/retroarch"
|
|
RETROARCH_CORE=ppsspp_libretro.so
|
|
if [ ! -f "$RETROARCH_BIN" ] || [ ! -f "$RETROARCH_HOME/cores/$RETROARCH_CORE" ]; then
|
|
log "ERROR: retroarch or core not found, install it via Steam"
|
|
exit 127
|
|
fi
|
|
|
|
log "Launching RetroArch: $RETROARCH_BIN -L \"$RETROARCH_HOME/cores/$RETROARCH_CORE\" \"${@}\""
|
|
"$RETROARCH_BIN" -L "$RETROARCH_HOME/cores/$RETROARCH_CORE" "${@}" >>"$LOGFILE"
|