#!/bin/bash

##################
# Passer en TATE #
##################


# Tuer AdvanceMenu

killall advmenu


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

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


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

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


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

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


# Relance advmenu

advmenu

