Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mods
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-23 04:46:05 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-23 04:46:05 +0300
commitd1a409d9aebb59078025735469b195e52e27586c (patch)
treeacf8a07731168d9a6f4232018d7f0cd35ea50d66 /mods
parentfb6b8383c27560c30e7a3076c67b925a7f8ff363 (diff)
Global command line arguments (NOT TESTED YET!)
Diffstat (limited to 'mods')
-rw-r--r--mods/mod_transfer/hakchi/init8
1 files changed, 7 insertions, 1 deletions
diff --git a/mods/mod_transfer/hakchi/init b/mods/mod_transfer/hakchi/init
index d47d32e2..781a4ca2 100644
--- a/mods/mod_transfer/hakchi/init
+++ b/mods/mod_transfer/hakchi/init
@@ -10,6 +10,7 @@ installed_flag=$installdir/installed
version_file=$installdir/version
hakchi_version=3
kernel_version=3.4.112
+hakchi_extra_args_file=/$modname/extra_args
echo Starting $modname...
@@ -129,10 +130,15 @@ if [ -d /games ]; then
fi
if [ "$hakchi_remove_armet_all" == "y" ]; then
- echo "Removing armet filter..."
+ echo Removing armet filter...
find $rootfs/usr/share/games/nes/kachikachi -name *.desktop -exec sed -i -e 's/--enable-armet//g' {} +
fi
+if [ -f $hakchi_extra_args_file ]; then
+ echo Appending extra command line arguments...
+ find $rootfs/usr/share/games/nes/kachikachi -name *.desktop -exec awk -v cfile="$hakchi_extra_args_file" 'BEGIN{getline c < cfile} /Exec=/{$0=$0 c} {l[ln++]=$0} END{for(i=0;i<ln;i++) print l[i]>ARGV[1]}'
+fi
+
cp $mountpoint/usr/share/clover-ui/resources/sprites/nes.json $rootfs/usr/share/clover-ui/resources/sprites/nes.json
if [ "$hakchi_remove_thumbnails" == "y" ]; then
echo Removing thumbnails...