diff --git a/conf/README.GAME b/conf/README.GAME new file mode 100644 index 0000000..fc5c095 --- /dev/null +++ b/conf/README.GAME @@ -0,0 +1,2 @@ +You may put ROMs to be used by retroarch in this folder. +After a 5 minute delay, they should be available in retroarch itself in the "download/Game" directory. \ No newline at end of file diff --git a/conf/indexer.sh b/conf/indexer.sh index 53b93d1..2c14573 100644 --- a/conf/indexer.sh +++ b/conf/indexer.sh @@ -1,7 +1,8 @@ #!/bin/bash +#This script is run by the cron job in /etc/cron.d/retroarch +#It will index all cores in the opt/yunohost/retroarch/assets/cores folder so that they are available in +# retroarch itself. -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -9,9 +10,16 @@ source /usr/share/yunohost/helpers source _common.sh +#================================================= +# GET APP SETTINGS +#================================================= + app=__APP__ final_path=$(ynh_app_setting_get --app=$app --key=final_path) +#================================================= +# Update the index +#================================================= ynh_use_nodejs cd $final_path/assets/frontend/bundle/ diff --git a/conf/retroarch.cron b/conf/retroarch.cron index 93c6552..f5d3e5e 100644 --- a/conf/retroarch.cron +++ b/conf/retroarch.cron @@ -1 +1,2 @@ +#This script will update the core index every 5 minutes so that they are available in retroarch */5 * * * * root __FINAL_PATH__/indexer.sh > /dev/null 2>&1 \ No newline at end of file