File tree Expand file tree Collapse file tree 2 files changed +10
-25
lines changed
Expand file tree Collapse file tree 2 files changed +10
-25
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,14 @@ function install_eduke32() {
7676
7777function game_data_eduke32() {
7878 local dest=" $romdir /ports/duke3d"
79- if [[ " $md_id " == " eduke32" ]]; then
80- if [[ ! -n $( find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
81- mkUserDir " $dest "
82- local temp=" $( mktemp -d) "
83- download " $__archive_url /3dduke13.zip" " $temp "
84- unzip -L -o " $temp /3dduke13.zip" -d " $temp " dn3dsw13.shr
85- unzip -L -o " $temp /dn3dsw13.shr" -d " $dest " duke3d.grp duke.rts
86- rm -rf " $temp "
87- chown -R $user :$user " $dest "
88- fi
79+ if [[ ! -n $( find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
80+ mkUserDir " $dest "
81+ local temp=" $( mktemp -d) "
82+ download " $__archive_url /3dduke13.zip" " $temp "
83+ unzip -L -o " $temp /3dduke13.zip" -d " $temp " dn3dsw13.shr
84+ unzip -L -o " $temp /dn3dsw13.shr" -d " $dest " duke3d.grp duke.rts
85+ rm -rf " $temp "
86+ chown -R $user :$user " $dest "
8987 fi
9088}
9189
@@ -107,7 +105,7 @@ function configure_eduke32() {
107105 rm -f " $romdir /ports/Duke3D Shareware.sh"
108106
109107 if [[ " $md_mode " == " install" ]]; then
110- game_data_eduke32
108+ [[ " $md_id " == " eduke32 " ]] && game_data_eduke32
111109
112110 touch " $config "
113111 iniConfig " " ' "' " $config "
Original file line number Diff line number Diff line change @@ -75,19 +75,6 @@ function install_jfduke3d() {
7575 fi
7676}
7777
78- function game_data_jfduke3d() {
79- local dest=" $romdir /ports/duke3d"
80- if [[ ! -n $( find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
81- mkUserDir " $dest "
82- local temp=" $( mktemp -d) "
83- download " $__archive_url /3dduke13.zip" " $temp "
84- unzip -L -o " $temp /3dduke13.zip" -d " $temp " dn3dsw13.shr
85- unzip -L -o " $temp /dn3dsw13.shr" -d " $dest " duke3d.grp duke.rts
86- rm -rf " $temp "
87- chown -R $user :$user " $dest "
88- fi
89- }
90-
9178function config_file_jfduke3d() {
9279 local config=" $1 "
9380 if [[ -f " $config " ]] || isPlatform " x86" ; then
@@ -113,6 +100,6 @@ function configure_jfduke3d() {
113100 if [[ " $md_mode " != " install" ]]; then
114101 return
115102 fi
116- game_data_jfduke3d
103+ game_data_eduke32
117104 config_file_jfduke3d " $md_conf_root /jfduke3d/duke3d.cfg"
118105}
You can’t perform that action at this time.
0 commit comments