Skip to content

Commit

Permalink
xarcade2jstick - simplify module for retropie 4.x packages system
Browse files Browse the repository at this point in the history
 * no need for function to check/build called from gui_xarcade2jstick
 * added remove function to uninstall service on removal
 * cd to $md_inst before calling make installservice/uninstallservice
  • Loading branch information
joolswills committed Sep 22, 2017
1 parent fffbe6f commit f4b3b5c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions scriptmodules/supplementary/xarcade2jstick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ function install_xarcade2jstick() {
make install
}

function sup_checkInstallXarcade2Jstick() {
if [[ ! -d "$md_inst" ]]; then
sources_xarcade2jstick
build_xarcade2jstick
install_xarcade2jstick
fi
function remove_xarcade2jstick() {
cd "$md_inst"
make uninstallservice
}

function gui_xarcade2jstick() {
Expand All @@ -46,12 +43,12 @@ function gui_xarcade2jstick() {
if [[ -n "$choice" ]]; then
case "$choice" in
1)
sup_checkInstallXarcade2Jstick
cd "$md_inst"
make uninstallservice
printMsgs "dialog" "Disabled Xarcade2Jstick."
;;
2)
sup_checkInstallXarcade2Jstick
cd "$md_inst"
make installservice
printMsgs "dialog" "Enabled Xarcade2Jstick service."
;;
Expand Down

0 comments on commit f4b3b5c

Please sign in to comment.