Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Place in game directory with xrunpacker or whatever unpacking tool you use.
- #This script is for automating the unpacking process.
- # Loop through and unpack files from each directory individually
- for f in database/config/*.db; do
- if [[ -f "$f" ]]; then # Check if the file exists
- echo "Processing $f"
- wine converter.exe -unpack -xdb "$f" -dir unpacked
- fi
- done
- for f in database/maps/*.db; do
- if [[ -f "$f" ]]; then # Check if the file exists
- echo "Processing $f"
- wine converter.exe -unpack -xdb "$f" -dir unpacked
- fi
- done
- for f in database/patch/*.db; do
- if [[ -f "$f" ]]; then # Check if the file exists
- echo "Processing $f"
- wine converter.exe -unpack -xdb "$f" -dir unpacked
- fi
- done
- for f in database/resource/*.db; do
- if [[ -f "$f" ]]; then # Check if the file exists
- echo "Processing $f"
- wine converter.exe -unpack -xdb "$f" -dir unpacked
- fi
- done
- for f in database/sound/*.db; do
- if [[ -f "$f" ]]; then # Check if the file exists
- echo "Processing $f"
- wine converter.exe -unpack -xdb "$f" -dir unpacked
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment