#!/bin/sh
progdir=`dirname "$0"`
$progdir/reset/printstr "正在重置系统默认设置..."
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 "系统设置已重置"
sleep 2
sync
