#!/bin/bash if [[ ! -f ${HOME}/.pcsx2/Pcsx2.cfg ]] ; then echo You are running PCSX2 for the first time. echo Setting up your PCSX2 environment... Please wait... mkdir -p "${HOME}"/.pcsx2 cd "${HOME}"/.pcsx2 mkdir Bios Docs Plugins host memcards snap ln -s "GAMES_BINDIR"/pcsx2.bin pcsx2 ln -s "GAMES_LIBDIR"/ps2emu/plugins/* Plugins/ ln -s "GAMES_LIBDIR"/ps2emu/Langs Langs ln -s "GAMES_LIBDIR"/ps2emu/cfg cfg cd Bios if [[ -f GAMES_LIBDIR/ps2emu/bios/scph1001.bin ]] ; then ln -s "GAMES_LIBDIR"/ps2emu/bios/scph1001.bin . biosname=scph1001.bin else biosname=HLE fi cd .. firstplugin() { echo $(basename $(ls "$@" | cut -f1 -d\ ) ) 2>/dev/null ; } cat > "${HOME}"/.pcsx2/Pcsx2.cfg < /dev/null ln -s "GAMES_LIBDIR"/ps2emu/plugins/* plugins/ &> /dev/null exec ./pcsx2 "$@"