mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
fxsdk: finally implement the send-fx and send-cg commands
This commit is contained in:
parent
2cc5d7ac5b
commit
c517447a02
1 changed files with 16 additions and 4 deletions
|
@ -210,13 +210,25 @@ fxsdk_send() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fxsdk_send_fx() {
|
fxsdk_send_fx() {
|
||||||
echo "$TAG Installing for fx9860g using p7"
|
echo "$TAG Installing for fx-9860G using p7"
|
||||||
make install-fx
|
if ! command -v p7 >/dev/null 2>&1; then
|
||||||
|
echo "error: p7 is not installed or not available"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
g1a_files=$(find -maxdepth 1 -name '*.g1a')
|
||||||
|
echo "$TAG Running: p7 send -f ${g1a_files}"
|
||||||
|
p7 send -f ${g1a_files}
|
||||||
}
|
}
|
||||||
|
|
||||||
fxsdk_send_cg() {
|
fxsdk_send_cg() {
|
||||||
# TODO
|
echo "$TAG Installing for fx-CG using fxlink"
|
||||||
echo "error: this is tricky and not implemented yet, sorry x_x"
|
if ! command -v fxlink >/dev/null 2>&1; then
|
||||||
|
echo "error: fxlink is not installed or not available"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
g3a_files=$(find -maxdepth 1 -name '*.g3a')
|
||||||
|
echo "$TAG Running: fxlink -sw ${g3a_files}"
|
||||||
|
fxlink -sw ${g3a_files}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parse command name
|
# Parse command name
|
||||||
|
|
Loading…
Reference in a new issue