zx_cartridge/Content/Batty/debuild.sh
MichailKaa 7aaf4a7b21 ext version
batty start, but not work
2026-02-19 23:33:01 +03:00

24 lines
704 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# скрипт извлечения ресурсов из TAP файла с помощью tzxlist
TAP_FILE="batty.tap"
echo "Извлекаем блоки из $TAP_FILE..."
# Извлекаем каждый блок в отдельный файл
tzxlist -d 0 "$TAP_FILE"
tzxlist -d 1 "$TAP_FILE"
tzxlist -d 2 "$TAP_FILE"
tzxlist -d 3 "$TAP_FILE"
# Переименовываем в понятные имена
mv 00000000.dat loader0.bin # загрузчик
mv 00000001.dat loader1.bin # загрузчик
mv 00000002.dat screen.scr # картинка
mv 00000003.dat main.bin # код игры
rm *.dsc
rm *.hdr
# Показываем результат
ls -la