#!/bin/bash

##################
# Passer en YOKO #
##################


# Tuer AdvanceMenu

killall advmenu


# Modifier le fichier de config advmame.rc
# remplace: vertical/display_rol yes par vertical/display_rol no

sed -i -e "s/vertical\/display_rol\ yes/vertical\/display_rol\ no/g" ~/.advance/advmame.rc


# remplace: dir_rom /home/arcade/.advance/RomTATE    par   dir_rom /home/arcade/.advance/RomYOKO:/home/arcade/.advance/RomTATE

sed -i -e "s/dir_rom \/home\/arcade\/.advance\/RomTATE/dir_rom \/home\/arcade\/.advance\/RomYOKO:\/home\/arcade\/.advance\/RomTATE/g" ~/.advance/advmame.rc


# Modifier le fichier de config advmenu.rc
# remplace: display_orientation flip_xy mirror_y   par   display_orientation

sed -i -e "s/display_orientation flip_xy mirror_y/display_orientation/g" ~/.advance/advmenu.rc


# Relance advmenu

advmenu

