FBA Per-ROM Config

This topic contains 1 reply, has 2 voices, and was last updated by  petrockblog 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #105761


    Was working with a friend to setup a special configuration for FBA so that you can change the mapping of the controllers differently for each ROM. What I was able to do was add the following code to the runcommand.sh file:

    if [ $system = "fba" ]; then
        echo "FBA, Looking for ROM specific config"
        if [ -f "$rom.cfg" ]; then
            echo "SPECIAL ROM CONFIG FOUND"
            sudo ln -f -s $rom.cfg /opt/retropie/emulators/pifba/fba2x.cfg
    # run command
    eval $command </dev/tty 2>/tmp/runcommand.log
    if [ $system = "fba" ]; then
        sudo ln -f -s /home/pi/RetroPie/roms/fba2x.cfg /opt/retropie/emulators/pifba/fba2x.cfg

    Once this was added, I moved fba2x.cfg to the above listed path (/home/pi/RetroPie/roms), then you just make a file that matches the rom with a .cfg extension. For each config, if it is found, it is loaded as the FBA config (controller mapping) for that game specifically.

    IE: For a ROM sfa2.zip, you would make a config file sfa2.zip.cfg in the roms folder.

    Hope that helps someone!



    thanks – worth noting rom specific configuration is already supported –

    see line ~525

        # if the rom has a custom configuration then append that too
        if [[ -f "$rom.cfg" ]]; then
Viewing 2 posts - 1 through 2 (of 2 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

PLEASE NOTE: All orders that are placed between January 14th and January 28th will be shipped on January 29th. Dismiss