#!/bin/sh
progdir=`dirname "$0"`
case "$1" in
	1)
		rm -f $progdir/../Diablo+Hellfire.sh
		cp -f $progdir/暗黑破坏神+地狱火.sh $progdir/../
		sed -i -e '/Code=/c Code=zh_CN' $progdir/diablo.ini
		sync
		;;
	2)
		rm -f $progdir/../暗黑破坏神+地狱火.sh
		cp -f $progdir/Diablo+Hellfire.sh $progdir/../
		sed -i -e '/Code=/c Code=en' $progdir/diablo.ini
		sync
		;;
esac
