mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +00:00
MAME: exposing samples folder
This commit is contained in:
parent
d4f78cb196
commit
be12d0c4f4
|
@ -310,6 +310,11 @@ post_update() {
|
||||||
mv -f "$rdhome/gamelists/"* "$rdhome/ES-DE/gamelists"
|
mv -f "$rdhome/gamelists/"* "$rdhome/ES-DE/gamelists"
|
||||||
rm -rf "$rdhome/gamelists"
|
rm -rf "$rdhome/gamelists"
|
||||||
|
|
||||||
|
log i "MAME-SA, migrating samples to the new exposed folder: from \"/var/data/mame/assets/samples\" to \"$bios_folder/mame-sa/samples\""
|
||||||
|
create_dir "$bios_folder/mame-sa/samples"
|
||||||
|
mv -r "/var/data/mame/assets/samples/"* "$bios_folder/mame-sa/samples"
|
||||||
|
set_setting_value "$mameconf" "samplepath" "$bios_folder/mame-sa/samples" "mame"
|
||||||
|
|
||||||
log d "Verifying with user if they want to reset Ryujinx"
|
log d "Verifying with user if they want to reset Ryujinx"
|
||||||
if [[ "$(configurator_generic_question_dialog "RetroDECK 0.8.1b Ryujinx Reset" "In RetroDECK 0.8.0b the Ryujinx emulator was not properly initialized for upgrading users.\nThis would cause Ryujinx to not work properly.\n\nWould you like to reset Ryujinx to default RetroDECK settings now?\n\nIf you have made your own changes to the Ryujinx config, you can decline this reset.")" == "true" ]]; then
|
if [[ "$(configurator_generic_question_dialog "RetroDECK 0.8.1b Ryujinx Reset" "In RetroDECK 0.8.0b the Ryujinx emulator was not properly initialized for upgrading users.\nThis would cause Ryujinx to not work properly.\n\nWould you like to reset Ryujinx to default RetroDECK settings now?\n\nIf you have made your own changes to the Ryujinx config, you can decline this reset.")" == "true" ]]; then
|
||||||
log d "User agreed to Ryujinx reset"
|
log d "User agreed to Ryujinx reset"
|
||||||
|
|
|
@ -758,7 +758,7 @@ prepare_component() {
|
||||||
|
|
||||||
create_dir "/var/data/mame/plugin-data"
|
create_dir "/var/data/mame/plugin-data"
|
||||||
create_dir "/var/data/mame/hash"
|
create_dir "/var/data/mame/hash"
|
||||||
create_dir "/var/data/mame/assets/samples"
|
create_dir "$bios_folder/mame-sa/samples"
|
||||||
create_dir "/var/data/mame/assets/artwork"
|
create_dir "/var/data/mame/assets/artwork"
|
||||||
create_dir "/var/data/mame/assets/fonts"
|
create_dir "/var/data/mame/assets/fonts"
|
||||||
create_dir "/var/data/mame/cheat"
|
create_dir "/var/data/mame/cheat"
|
||||||
|
@ -799,6 +799,7 @@ prepare_component() {
|
||||||
set_setting_value "$mameconf" "state_directory" "$states_folder/mame-sa" "mame"
|
set_setting_value "$mameconf" "state_directory" "$states_folder/mame-sa" "mame"
|
||||||
set_setting_value "$mameconf" "snapshot_directory" "$screenshots_folder/mame-sa" "mame"
|
set_setting_value "$mameconf" "snapshot_directory" "$screenshots_folder/mame-sa" "mame"
|
||||||
set_setting_value "$mameconf" "diff_directory" "$saves_folder/mame-sa/diff" "mame"
|
set_setting_value "$mameconf" "diff_directory" "$saves_folder/mame-sa/diff" "mame"
|
||||||
|
set_setting_value "$mameconf" "samplepath" "$bios_folder/mame-sa/samples" "mame"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue