mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-26 07:55:37 +00:00
MAME: paths fixed
This commit is contained in:
parent
4ebb452619
commit
d96da39876
|
@ -712,7 +712,7 @@ prepare_component() {
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
|
|
||||||
# TODO: probably some of these needs to be put elsewhere
|
# TODO: probably some of these needs to be put elsewhere
|
||||||
mkdir -p $saves_folder/mame-sa
|
mkdir -p "$saves_folder/mame-sa"
|
||||||
mkdir -p "$saves_folder/mame-sa/nvram"
|
mkdir -p "$saves_folder/mame-sa/nvram"
|
||||||
mkdir -p "$states_folder/mame-sa"
|
mkdir -p "$states_folder/mame-sa"
|
||||||
mkdir -p "$rdhome/screenshots/mame-sa"
|
mkdir -p "$rdhome/screenshots/mame-sa"
|
||||||
|
@ -757,19 +757,19 @@ prepare_component() {
|
||||||
mkdir -p "/var/data/mame/assets/ui"
|
mkdir -p "/var/data/mame/assets/ui"
|
||||||
|
|
||||||
dir_prep "$saves_folder/mame-sa/hiscore" "/var/config/mame/hiscore"
|
dir_prep "$saves_folder/mame-sa/hiscore" "/var/config/mame/hiscore"
|
||||||
cp -fvr "$emuconfigs/mame/mame.ini" "/var/config/mame"
|
cp -fvr "$emuconfigs/mame/mame.ini" "/var/config/mame/cfg"
|
||||||
cp -fvr "$emuconfigs/mame/ui.ini" "/var/config/mame"
|
cp -fvr "$emuconfigs/mame/ui.ini" "/var/config/mame/cfg"
|
||||||
cp -fvr "$emuconfigs/mame/default.cfg" "/var/config/mame"
|
cp -fvr "$emuconfigs/mame/default.cfg" "/var/config/mame/cfg"
|
||||||
|
|
||||||
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/mame/mame.ini"
|
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/mame/cfg/mame.ini"
|
||||||
sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/mame/mame.ini"
|
sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/mame/cfg/mame.ini"
|
||||||
sed -i 's#RETRODECKSAVESDIR#'$rdhome'#g' "/var/config/mame/mame.ini"
|
sed -i 's#RETRODECKSAVESDIR#'$saves_folder'#g' "/var/config/mame/cfg/mame.ini"
|
||||||
sed -i 's#RETRODECKSTATESDIR#'$rdhome'#g' "/var/config/mame/mame.ini"
|
sed -i 's#RETRODECKSTATESDIR#'$states_folder'#g' "/var/config/mame/cfg/mame.ini"
|
||||||
|
|
||||||
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/mame/ui.ini"
|
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/mame/cfg/ui.ini"
|
||||||
sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/mame/ui.ini"
|
sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/mame/cfg/ui.ini"
|
||||||
sed -i 's#RETRODECKSAVESDIR#'$rdhome'#g' "/var/config/mame/ui.ini"
|
sed -i 's#RETRODECKSAVESDIR#'$saves_folder'#g' "/var/config/mame/cfg/ui.ini"
|
||||||
sed -i 's#RETRODECKSTATESDIR#'$rdhome'#g' "/var/config/mame/ui.ini"
|
sed -i 's#RETRODECKSTATESDIR#'$states_folder'#g' "/var/config/mame/cfg/ui.ini"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$component" =~ ^(gzdoom|GZDOOM|all)$ ]]; then
|
if [[ "$component" =~ ^(gzdoom|GZDOOM|all)$ ]]; then
|
||||||
|
|
Loading…
Reference in a new issue