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

github.com/ClusterM/retroarch-clover.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-20 02:19:58 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-20 02:19:58 +0300
commit9f0fefd3693fe2b3f05f74dd30c628edb207307f (patch)
treec0a0879f8b99080b9b77e8142f4db2f033599e68
parentdbecaea1e77851af239ca008bdd2af9de2d8f550 (diff)
Fixed snes9x/snes9x2010 conflict
-rwxr-xr-xcore_modules/snes9x.hmod/bin/snes9x (renamed from core_modules/snes9x.hmod/bin/snes)0
-rwxr-xr-xcore_modules/snes9x2010.hmod/bin/snes9x201029
2 files changed, 29 insertions, 0 deletions
diff --git a/core_modules/snes9x.hmod/bin/snes b/core_modules/snes9x.hmod/bin/snes9x
index 4eaef77..4eaef77 100755
--- a/core_modules/snes9x.hmod/bin/snes
+++ b/core_modules/snes9x.hmod/bin/snes9x
diff --git a/core_modules/snes9x2010.hmod/bin/snes9x2010 b/core_modules/snes9x2010.hmod/bin/snes9x2010
new file mode 100755
index 0000000..87b242b
--- /dev/null
+++ b/core_modules/snes9x2010.hmod/bin/snes9x2010
@@ -0,0 +1,29 @@
+#!/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)
+ filename_str=${filename// /_}
+ mv "$filename" "$filename_str"
+ filename=$filename_str
+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 snes9x2010 "$filename" "$@"