diff options
author | Ryan 'Swingflip' Hamlin | 2018-10-17 15:14:13 +0100 |
---|---|---|
committer | Ryan 'Swingflip' Hamlin | 2018-10-17 15:14:13 +0100 |
commit | eab2e01437c1fe8ceb330657ac60663a89a4f2dd (patch) | |
tree | 6bde981a88592082d60d3bcf9a944e0639d27007 /hakchi/bin | |
parent | 878f1ce501f6977e666c7a43bfd1199e228bde60 (diff) | |
download | snesemu-eab2e01437c1fe8ceb330657ac60663a89a4f2dd.tar.gz snesemu-eab2e01437c1fe8ceb330657ac60663a89a4f2dd.tar.bz2 snesemu-eab2e01437c1fe8ceb330657ac60663a89a4f2dd.zip |
Added ARMv7 A7
Diffstat (limited to 'hakchi/bin')
-rwxr-xr-x | hakchi/bin/snes | 38 | ||||
-rwxr-xr-x | hakchi/bin/snes05 | 38 |
2 files changed, 0 insertions, 76 deletions
diff --git a/hakchi/bin/snes b/hakchi/bin/snes deleted file mode 100755 index 4447455..0000000 --- a/hakchi/bin/snes +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -setFileName(){ - filename="$(readlink -f "$1")" - filebase="$(basename "$filename")" - extension="${filebase##*.}" -} - -getSfrom(){ - local rom="$(hexdump -e '1/4 "%u"' -s8 -n4 "$1")" - local footer="$(hexdump -e '1/4 "%u"' -s20 -n4 "$1")" - local size="$(hexdump -e '1/4 "%u"' -s$((footer+1)) -n4 "$1")" - dd "status=none" "if=$1" "iflag=skip_bytes" "skip=$rom" "bs=$size" "count=1" -} - -setFileName "$1" -shift - -tmppath="/tmp/rom" -rm -rf "$tmppath" -mkdir -p "$tmppath" -cd "$tmppath" - -if [ "$extension" = "7z" ]; then - tiny7zx x "$filename" - filename="$tmppath/$(ls | head -n1)" - filename_str="${filename// /_}" - mv "$filename" "$filename_str" - setFileName "$filename_str" -fi - -if [ "$extension" = "sfrom" ]; then - filename_str="$filebase.sfc" - getSfrom "$filename" > "$filename_str" - setFileName "$filename_str" -fi - -exec retroarch-clover snes9x "$filename" "$@" diff --git a/hakchi/bin/snes05 b/hakchi/bin/snes05 deleted file mode 100755 index c6da74b..0000000 --- a/hakchi/bin/snes05 +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -setFileName(){ - filename="$(readlink -f "$1")" - filebase="$(basename "$filename")" - extension="${filebase##*.}" -} - -getSfrom(){ - local rom="$(hexdump -e '1/4 "%u"' -s8 -n4 "$1")" - local footer="$(hexdump -e '1/4 "%u"' -s20 -n4 "$1")" - local size="$(hexdump -e '1/4 "%u"' -s$((footer+1)) -n4 "$1")" - dd "status=none" "if=$1" "iflag=skip_bytes" "skip=$rom" "bs=$size" "count=1" -} - -setFileName "$1" -shift - -tmppath="/tmp/rom" -rm -rf "$tmppath" -mkdir -p "$tmppath" -cd "$tmppath" - -if [ "$extension" = "7z" ]; then - tiny7zx x "$filename" - filename="$tmppath/$(ls | head -n1)" - filename_str="${filename// /_}" - mv "$filename" "$filename_str" - setFileName "$filename_str" -fi - -if [ "$extension" = "sfrom" ]; then - filename_str="$filebase.sfc" - getSfrom "$filename" > "$filename_str" - setFileName "$filename_str" -fi - -exec retroarch-clover snes9x2005 "$filename" "$@" |