Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wolf4sdl: game data (Spear of Destiny) #3445

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scriptmodules/ports/wolf4sdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function add_games_wolf4sdl() {
declare -A -g games_wolf4sdl=(
['vswap.wl1']="Wolfenstein 3D demo"
['vswap.wl6']="Wolfenstein 3D"
['vswap.sod']="Wolfenstein 3D - Spear of Destiny"
['vswap.sd1']="Wolfenstein 3D - Spear of Destiny Ep 1"
['vswap.sd2']="Wolfenstein 3D - Spear of Destiny Ep 2"
['vswap.sd3']="Wolfenstein 3D - Spear of Destiny Ep 3"
Expand Down Expand Up @@ -87,7 +88,7 @@ function game_data_wolf4sdl() {
# Get shareware game data
downloadAndExtract "http://maniacsvault.net/ecwolf/files/shareware/wolf3d14.zip" "$romdir/ports/wolf3d" -j -LL
fi
if [[ ! -f "$romdir/ports/wolf3d/vswap.sdm" && ! -f "$romdir/ports/wolf3d/vswap.sod" ]]; then
if [[ ! -f "$romdir/ports/wolf3d/vswap.sdm" && ! -f "$romdir/ports/wolf3d/vswap.sod" && ! -f "$romdir/ports/wolf3d/vswap.sd1" ]]; then
cd "$__tmpdir"
# Get shareware game data
downloadAndExtract "http://maniacsvault.net/ecwolf/files/shareware/soddemo.zip" "$romdir/ports/wolf3d" -j -LL
Expand Down Expand Up @@ -129,6 +130,7 @@ function launch_wolf4sdl() {
['e3e87518f51414872c454b7d72a45af6']="wolf4sdl-spear --mission 3"
['35afda760bea840b547d686a930322dc']="wolf4sdl-spear-sw"
)
[[ "\${wad_file##*/}" == "vswap.sod" ]] && game_checksums['b1dac0a8786c7cdbb09331a4eba00652']="wolf4sdl-spear"
if [[ "\${game_checksums[\$(get_md5sum \$wad_file)]}" ]] 2>/dev/null; then
pushd "$romdir/ports/wolf3d"
$md_inst/bin/\${game_checksums[\$(get_md5sum \$wad_file)]}
Expand Down