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

snes9x « bin « snes9x.hmod « core_modules - github.com/ClusterM/retroarch-clover.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4eaef774a1d5318a909552dbcc431a26008b1976 (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
25
26
#!/bin/sh

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=$tmppath/$(ls)
fi

filebase=$(basename "$filename")
extension="${filebase##*.}"
if [ "$extension" == "sfrom" ]; then
  mkdir -p $tmppath
  rm -f $tmppath/*.7z
  rm -f $tmppath/*.bin
  dd if="$filename" of="$tmppath/$filebase.bin" bs=48 skip=1
  filename=$tmppath/$filebase.bin
fi
shift

exec retroarch-clover snes9x "$filename" "$@"