Commented sharing is caring related code, as it doesn't seem to work

This commit is contained in:
Michael Taboada 2023-11-10 15:50:27 -08:00
parent e15e680a14
commit cf69473757
2 changed files with 8 additions and 6 deletions

View File

@ -84,7 +84,9 @@ case ${buttonCode} in
dialog --backtitle "Co-op" --clear --msgbox "No ip address or URL given." -1 -1 --stdout dialog --backtitle "Co-op" --clear --msgbox "No ip address or URL given." -1 -1 --stdout
exit 1 exit 1
fi fi
flags=("${doomPath}/SiC_v1_01.pk3" '-join' "${ipAddress}") flags=(
#"${doomPath}/SiC_v1_01.pk3"
'-join' "${ipAddress}")
else else
# Get ip address # Get ip address
yourIpAddress="$(curl -4s https://icanhazip.com)" yourIpAddress="$(curl -4s https://icanhazip.com)"
@ -101,7 +103,7 @@ case ${buttonCode} in
--rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)" --rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)"
[[ $? -eq 1 ]] && exit 0 [[ $? -eq 1 ]] && exit 0
flags=( flags=(
"${doomPath}/SiC_v1_01.pk3" #"${doomPath}/SiC_v1_01.pk3"
'-host' "${players}" '-host' "${players}"
'-skill' "${skillLevel}" '-skill' "${skillLevel}"
'+set' 'sv_cheats' '1' '+set' 'sv_cheats' '1'
@ -109,8 +111,8 @@ case ${buttonCode} in
'+set' 'sv_respawnprotect' '1' '+set' 'sv_respawnprotect' '1'
'+set' 'sv_itemrespawn' '1' '+set' 'sv_itemrespawn' '1'
'+set' 'sv_respawnsuper' '1' '+set' 'sv_respawnsuper' '1'
'+set' 'sv_SiC_AlwaysWeaponShare' '1' #'+set' 'sv_SiC_AlwaysWeaponShare' '1'
'+set' 'sv_SiC_ShareKeys' '1' #'+set' 'sv_SiC_ShareKeys' '1'
'+set' 'alwaysapplydmflags' ''1 '+set' 'alwaysapplydmflags' ''1
'-extratic' '-dup' '3' '-extratic' '-dup' '3'
) )

View File

@ -652,14 +652,14 @@ case "${game}" in
fi fi
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)" doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)"
get_installer "OperationMDK.zip" "https://www.dropbox.com/scl/fi/bac94s01bl31p6e73pbof/OperationMDK.zip?rlkey=6ufdqgyacakqz6ulr2cue6rtm&dl=0" get_installer "OperationMDK.zip" "https://www.dropbox.com/scl/fi/bac94s01bl31p6e73pbof/OperationMDK.zip?rlkey=6ufdqgyacakqz6ulr2cue6rtm&dl=0"
get_installer "SiC_v1_01.pk3" "https://forum.zdoom.org/download/file.php?id=36045" #get_installer "SiC_v1_01.pk3" "https://forum.zdoom.org/download/file.php?id=36045"
download "https://www.dropbox.com/s/uf01fx3vydua6zx/TobyAccessibilityMod_Version${tobyVersion}.zip?dl=0" download "https://www.dropbox.com/s/uf01fx3vydua6zx/TobyAccessibilityMod_Version${tobyVersion}.zip?dl=0"
echo "The next step may require your password." echo "The next step may require your password."
echo "It is necessary to places the extracted files in their proper place." echo "It is necessary to places the extracted files in their proper place."
alert alert
sudo unzip -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip" sudo unzip -d "${doomPath}" "${cache}/TobyAccessibilityMod_Version${tobyVersion}.zip"
sudo unzip -d "${doomPath}" "${cache}/OperationMDK.zip" sudo unzip -d "${doomPath}" "${cache}/OperationMDK.zip"
sudo cp -v "${cache}/SiC_v1_01.pk3" "${doomPath}" #sudo cp -v "${cache}/SiC_v1_01.pk3" "${doomPath}"
sudo rm -fv "${doomPath}/"*.lnk sudo rm -fv "${doomPath}/"*.lnk
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom" mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom"
cp "${doomPath}/gzdoom.ini" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/" cp "${doomPath}/gzdoom.ini" "${XDG_CONFIG_HOME:-$HOME/.config}/gzdoom/"