forked from ShadauxCat/CATSFC
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from HakchiCloud/master
Added Hakchi platform
- Loading branch information
Showing
5 changed files
with
117 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/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" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/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" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[ -f "$mountpoint/usr/bin/clover-canoe-shvc" ] && overmount /usr/bin/clover-canoe-shvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
----------------------- | ||
Name: SNES9x2005 | ||
Creator: Libretro | ||
Category: RetroArch Cores | ||
----------------------- | ||
=== SNES9x2005 Core for RetroArch === | ||
|
||
Module adds support for Super Famicom / Super Nintendo | ||
|
||
Available executables and arguments to run Core: | ||
- /bin/snes <rom> <clover_args> | ||
- /bin/snes05 <rom> <clover_args> | ||
|
||
Core by libretro | ||
|
||
Built and assembled by HakchiCloud - [Website](https://hakchiresources.com) | ||
|
||
Hakchi module system by madmonkey | ||
|
||
NES/SNES Mini shell integration by Cluster | ||
|
||
(c) 2016-2018 | ||
|