diff options
Diffstat (limited to 'phoenix-emu-project')
-rw-r--r-- | phoenix-emu-project | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/phoenix-emu-project b/phoenix-emu-project index 16e0502db272..1dc8af3cbc17 100644 --- a/phoenix-emu-project +++ b/phoenix-emu-project @@ -1,19 +1,23 @@ #!/bin/sh -confdir=$HOME/.config/PhoenixEmuProject +if [ ! -z $XDG_CONFIG_HOME ]; then + confdir=$XDG_CONFIG_HOME/PhoenixEmuProject +else + confdir=$HOME/.config/PhoenixEmuProject +fi mkdir -p $confdir cd $confdir -if [ ! -s $confdir/scalers ] ; then - cp -r /opt/phoenix-emu-project/scales $confdir/scales +if [ ! -d $confdir/scalers ]; then + cp -fr /opt/phoenix-emu-project/scales/ $confdir/scales/ fi -if [ ! -s $confdir/shaders ] ; then - cp -r /opt/phoenix-emu-project/shaders $confdir/shaders +if [ ! -d $confdir/shaders ]; then + cp -fr /opt/phoenix-emu-project/shaders/ $confdir/shaders/ fi -if [ ! -s $confdir/skin ] ; then - cp -r /opt/phoenix-emu-project/skin $confdir/skin +if [ ! -d $confdir/skin ]; then + cp -fr /opt/phoenix-emu-project/skin/ $confdir/skin/ fi if [[ $LANG != "ru_RU"* ]]; then - cp /opt/phoenix-emu-project/translation.xml.eng $confdir/translation.xml + cp -f /opt/phoenix-emu-project/translation.xml.eng $confdir/translation.xml fi /opt/phoenix-emu-project/PhoenixEmuProject |