#!/bin/sh
progdir=`dirname "$0"`
$progdir/reset/printstr "Restoring default settings..."
sleep 1
rm -rf /mnt/mmc/CFW/retroarch/.retroarch/config
unzip -o $progdir/reset/reset.zip -d /
if [[ ! "$?" == "0" ]]; then
	unzip -o $progdir/reset/reset0.zip -d /
	cp -f $progdir/reset/reset0.zip $progdir/reset/reset.zip
fi
$progdir/reset/printstr "Restored default settings"
sleep 2
sync
