Improve some console error messages

This commit is contained in:
Epicalert 2024-09-15 04:32:51 +08:00
parent f4190fbfab
commit 509973bfe7

View file

@ -50,7 +50,7 @@ QUrl TextureCrafter::packChannels(QVector<QUrl> imagePaths) {
QString outFileName = outDir.path(); QString outFileName = outDir.path();
outFileName.append("/out.png"); outFileName.append("/out.png");
printf("wrote to %s\n", outFileName.toLatin1().data()); printf("writing to %s\n", outFileName.toLatin1().data());
//TODO: use libpng and do progressive write to update the progress bar //TODO: use libpng and do progressive write to update the progress bar
if (outImage.save(outFileName)) { if (outImage.save(outFileName)) {
@ -58,10 +58,10 @@ QUrl TextureCrafter::packChannels(QVector<QUrl> imagePaths) {
return QUrl::fromLocalFile(outFileName); return QUrl::fromLocalFile(outFileName);
} else { } else {
//TODO: return some error value to show the user //TODO: return some error value to show the user
printf("that dream is fucked it is fucking fucked\n"); printf("that dream is fucked it is fucking fucked (write failed ;-;)\n");
} }
} else { } else {
printf("chat its so over\n"); printf("chat its so over (output dir invalid </3)\n");
} }
return QUrl(); return QUrl();