From 9652947eed15b1039b06fdd802cf763a6381721c Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 9 May 2021 17:36:14 +0200 Subject: [PATCH] add comment to file --- conf/README.GAME | 2 ++ conf/indexer.sh | 12 ++++++++++-- conf/retroarch.cron | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 conf/README.GAME 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