IT: reject invalid files before saving (#1432)

This commit is contained in:
Acts1631
2026-08-29 07:45:08 +02:00
committed by GitHub
parent 6dd7c9f313
commit 5fa6fa6c2f
+5
View File
@@ -81,6 +81,11 @@ bool IT::File::save()
debug("IT::File::save() - Cannot save to a read only file.");
return false;
}
if(!isValid())
{
debug("IT::File::save() -- Trying to save invalid file.");
return false;
}
seek(4);
writeString(d->tag.title(), 25);
writeByte(0);