Skip to content

Commit

Permalink
Update wolf4sdl.sh
Browse files Browse the repository at this point in the history
Automatically rename `.sod` files.
  • Loading branch information
s1eve-mcdichae1 authored Dec 11, 2021
1 parent 6641468 commit 5c0777e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scriptmodules/ports/wolf4sdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ function game_data_wolf4sdl() {
# Get shareware game data
downloadAndExtract "http://maniacsvault.net/ecwolf/files/shareware/wolf3d14.zip" "$romdir/ports/wolf3d" -j -LL
fi

for sodfile in gamemaps maphead vswap; do
[[ -f "$romdir/ports/wolf3d/$sodfile.sod" ]] && mv "$romdir/ports/wolf3d/$sodfile.sod" "$romdir/ports/wolf3d/$sodfile.sd1"
done

if [[ ! -f "$romdir/ports/wolf3d/vswap.sdm" && ! -f "$romdir/ports/wolf3d/vswap.sd1" ]]; then
cd "$__tmpdir"
# Get shareware game data
Expand Down

0 comments on commit 5c0777e

Please sign in to comment.