Ive managed to get Lordhasrams latest build to work in OpenElec now, for some reason RA is looking for a ‘configs’ folder not ‘config’ folder as it should be, there shouldnt be no ‘s’ on the end.
But now when i quit out of a rom i sends me back to the kodi main page and not pack to the rom list. I have tried changing the end of the script in retoracrch.sh from…
touch /var/lock/kodi.disabled
systemctl stop kodi
$ADDON_DIR/bin/retroarch -c $ADDON_FILES/configs/retroarch.cfg $EXTRAFLAG -L $ADDON_CORES/$1_libretro.so "$2" &
pid=$!
while kill -0 $pid >/dev/null
do
usleep 200000
done
rm /var/lock/kodi.disabled
systemctl start kodi
to…
pgrep kodi.bin | xargs kill -SIGSTOP
sleep 1
$ADDON_DIR/bin/retroarch -c $ADDON_FILES/config/retroarch.cfg $EXTRAFLAG -L $ADDON_CORES/$1_libretro.so "$2" &
while [ $(pidof retroarch) ];do
usleep 200000
done;
pgrep kodi.bin | xargs kill -SIGCONT
but once i do this then no games load in Advanced launcher!. I thought it was the line…
$ADDON_FILES/config/retroarch.cfg $EXTRAFLAG -L $ADDON_CORES/$1_libretro.so “$2” &
causing issues as the config didnt have an s at the end but added in configs and it still doesnt work. Anyone have any ideas?. Here the complete retroarch.sh script at the moment…
#!/bin/sh
ADDON_DIR=$HOME/.kodi/addons/emulator.retroarch
ADDON_FILES=/storage/emulators/retroarch
ADDON_CORES=$ADDON_DIR/cores
LD_LIBRARY_PATH=$ADDON_DIR/lib
if [ ! "$#" = "2" ];
then
echo "Usage: `basename $0` core /path/to/romfile"
echo "Example: `basename $0` snes9x /storage/mario.sfc"
echo
echo "Available cores:"
echo " `ls -1 $ADDON_CORES/*.so | cut -d - -f 1 | cut -d / -f 7`"
echo
exit 1
fi
if [ ! -f $ADDON_CORES/$1_libretro.so ]; then
echo "Core $1 not found, exiting."
exit 1
fi
if [ ! -f "$2" ]; then
echo "Rom file $2 not found, exiting."
exit 1
fi
if [ -f "$2.cfg" ]; then
echo "Config file for `basename "$2"` found, using."
EXTRAFLAG="--appendconfig "$2.cfg""
fi
pgrep kodi.bin | xargs kill -SIGSTOP
sleep 1
$ADDON_DIR/bin/retroarch -c $ADDON_FILES/configs/retroarch.cfg $EXTRAFLAG -L $ADDON_CORES/$1_libretro.so "$2" &
while [ $(pidof retroarch) ];do
usleep 200000
done;
pgrep kodi.bin | xargs kill -SIGCONT