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

clover-canoe-shvc-wr « bin « rootfs « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62fc841b019583cb3691e6b3deba94bb0e183834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Wrapper for canoe
# You can add extra command line arguments to all games at once
# using "cfg_snes_extra_args" variable in p0000_config

source /etc/preinit
script_init

filename=$1
filebase=$(basename "$filename")
extension="${filebase##*.}"
tmppath=/tmp/rom
if [ "$extension" == "7z" ]; then
  mkdir -p $tmppath
  rm -rf $tmppath/*
  cd $tmppath
  tiny7zx x $filename
  filename=$(ls)
fi
shift

args="$filename $@ $cfg_snes_extra_args"

exec /usr/bin/clover-canoe-shvc $args