FBA Per-ROM Config

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of buzz buzz 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #105761
    Profile photo of carnesman
    carnesman
    Participant

    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
        fi
    fi
    
    # 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
    fi
    

    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!

    #105780
    Profile photo of buzz
    buzz
    Keymaster

    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
            conf+="'|'\"$rom.cfg\""
        fi
    
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/

Skip to toolbar