#!/bin/bash

####### CONF ########
ROM=$1
SCREEN=$2
PATH_ROMS=${HOME}/pyrharckade/MEDIA/MAME/ROMS/
BIN=${HOME}/pyrharckade/BIN/LIBRETRO/MAME.so
####### CONF ########
cd $PATH_ROMS

${HOME}/pyrharckade/BIN/LIBRETRO/retroarch  -L ${BIN} -c ${HOME}/pyrharckade/BIN/LIBRETRO/retroarch.cfg ${PATH_ROMS}/${ROM}.zip

###### RESTART PYR ######
cd ${HOME}/pyrharckade/
./start.py $SCREEN
###### RESTART PYR ######	
