#3731
captaindork
Participant

And to share with you how I integrated it into the emulationstation menu:

First of all: I am no Linux and scripting person, so please excuse if this is not very clean… This is just the result of 2 hours google work… at least it works well for my setup and i am happy with it, but no guarantee for any other setup… :)

Step 1:
I created /home/pi/Retropie/emulators/uae4rpi/uae4rpi.sh with following content:


#!/bin/bash
UAEPATH=/home/pi/RetroPie/emulators/uae4rpi
rm -fr $UAEPATH/df*.adf
case $1 in
  *_disk1.adf|*_disk1.ADF)
    ln -s $1 $UAEPATH/df0.adf
    ln -s ${1:0:-5}2.adf $UAEPATH/df1.adf
    ;;
  *_disk2.adf|*_disk2.ADF)
    ln -s $1 $UAEPATH/df1.adf
    ln -s ${1:0:-5}1.adf $UAEPATH/df0.adf
    ;;
  *)
    ln -s $1 $UAEPATH/df0.adf
    ;;
esac
cd $UAEPATH
./uae4all

(do a “chmod +x uae4rpi.sh” to mark it as executable)

Step 2:
I added the following lines to /home/pi/.emulationstation/es_systems.cfg


DESCNAME=Amiga
NAME=amiga
PATH=/home/pi/RetroPie/roms/amiga
EXTENSION=.adf .ADF
COMMAND=/home/pi/RetroPie/emulators/uae4rpi/uae4rpi.sh %ROM%
PLATFORMID=4911

This made a nice menu available in emulationstation where I can browse my adf-files, select them and they get started properly, just as for any other system. TAB+Q will return to emulationstation. Perfect!

Be aware, that adf-files ending with “_disk1.adf” will assume that a “_disk2.adf” is present and will insert this second one automatically into df1. So if you exactly follow this naming convention, also roms with 2-disks will work.

Regards
captaindork