#!/bin/bash
if [ ! -f $HOME/.config/retroarch/retroarch-mobile.cfg ];
then
    echo "Copying retroarch-mobile.cfg...";
    mkdir -p $HOME/.config/retroarch;
    cp /etc/retroarch-mobile.cfg $HOME/.config/retroarch/retroarch-mobile.cfg;
    echo "Done";
    exec retroarch --config $HOME/.config/retroarch/retroarch-mobile.cfg
else
exec retroarch --config $HOME/.config/retroarch/retroarch-mobile.cfg
fi