Link Here
|
79 |
fi |
79 |
fi |
80 |
|
80 |
|
81 |
# Special case - CD image from GOG |
81 |
# Special case - CD image from GOG |
82 |
if [[ "$(command -v python)" == "" ]]; then |
82 |
if [[ "$(command -v python3)" == "" ]]; then |
83 |
echo_yellow "python not found in your system. Please install it and re-run this script to extract animation resources." |
83 |
echo_yellow "python3 not found in your system. Please install it and re-run this script to extract animation resources." |
84 |
exit 0 |
84 |
exit 0 |
85 |
fi |
85 |
fi |
86 |
if [[ "$(command -v bsdtar)" == "" ]]; then |
86 |
if [[ "$(command -v bsdtar)" == "" ]]; then |
Link Here
|
90 |
|
90 |
|
91 |
echo_green "Extracting animation resources, please wait..." |
91 |
echo_green "Extracting animation resources, please wait..." |
92 |
|
92 |
|
93 |
python - << EOF |
93 |
python3 - << EOF |
94 |
with open("$HOMM2_PATH/homm2.gog", "rb") as raw_file: |
94 |
with open("$HOMM2_PATH/homm2.gog", "rb") as raw_file: |
95 |
with open("homm2.iso", "wb") as iso_file: |
95 |
with open("homm2.iso", "wb") as iso_file: |
96 |
while True: |
96 |
while True: |