mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-18 12:25:38 +00:00
Adding check for multifile game structure
This commit is contained in:
parent
2aa492f5de
commit
9415754822
10
functions.sh
10
functions.sh
|
@ -838,6 +838,16 @@ create_lock() {
|
||||||
conf_write
|
conf_write
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_multifile_game_structure() {
|
||||||
|
folder_games=($(find $rdhome/roms -maxdepth 2 -mindepth 2 -type d ! -name "*.m3u" ! -name "*.ps3"))
|
||||||
|
if [[ ${#folder_games[@]} -gt 1 ]]; then
|
||||||
|
zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK" \
|
||||||
|
--text="The following games were found to not have the correct folder structure:\n\n$(find $rdhome/roms -maxdepth 2 -mindepth 2 -type d ! -name "*.m3u" ! -name "*.ps3")\n\nIncorrect folder structure can result in failure to launch games or saves being in the incorrect location.\n\nPlease see the RetroDECK wiki for more details!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
easter_eggs() {
|
easter_eggs() {
|
||||||
today=$(date +"%0m%0d") # Read the current date in a format that can be calculated in ranges
|
today=$(date +"%0m%0d") # Read the current date in a format that can be calculated in ranges
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue