Slapparoo / TempleOS-EE

TempleOS Explorers Edition
49 stars 4 forks source link

TOSZ -ascii issue on files with embedded graphics #3

Closed Slapparoo closed 4 years ago

Slapparoo commented 4 years ago

Files with embedded graphics can become corrupted when using the TOSZ -ascii flag, the graphics component is stored in a binary format and gets corrupted if the special characters are stripped out

Currently most of the games and a lot of other files are corrupted. (These can easily be restored from a previous good version)

Slapparoo commented 4 years ago

Repairing the files:

Restored an original version of TempleOS onto C:\ then in Linux

where /tosc /tosd are the Mounted TempleOS drives

grep -lR "\$SP," * > curruptfiles.txt
for x in `cat curruptfiles.txt` ; do echo $x; done
for x in `cat curruptfiles.txt` ; do rm /tosd/$x; done
for x in `cat curruptfiles.txt` ; do cp /tosc/$x.Z /tosd/$x.Z; done
for x in `cat curruptfiles.txt` ; do Downloads/Linux/TOSZ /tosd/$x.Z; done
Slapparoo commented 4 years ago

done