Use full project names

This commit is contained in:
elecpower
2021-12-31 10:53:08 +01:00
committed by Raphael Coeffic
parent 0db9363df9
commit 76c3dd8240
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -40,7 +40,7 @@ bool EtxFormat::load(RadioData & radioData)
// open zip file // open zip file
memset(&zip_archive, 0, sizeof(zip_archive)); memset(&zip_archive, 0, sizeof(zip_archive));
if (!mz_zip_reader_init_mem(&zip_archive, archiveContents.data(), archiveContents.size(), 0)) { if (!mz_zip_reader_init_mem(&zip_archive, archiveContents.data(), archiveContents.size(), 0)) {
qDebug() << tr("Error opening ETX archive %1").arg(filename); qDebug() << tr("Error opening EdgeTX archive %1").arg(filename);
return false; return false;
} }
@@ -55,7 +55,7 @@ bool EtxFormat::write(const RadioData & radioData)
memset(&zip_archive, 0, sizeof(zip_archive)); memset(&zip_archive, 0, sizeof(zip_archive));
if (!mz_zip_writer_init_heap(&zip_archive, 0, MZ_ALLOCATION_SIZE)) { if (!mz_zip_writer_init_heap(&zip_archive, 0, MZ_ALLOCATION_SIZE)) {
setError(tr("Error initializing ETX archive writer")); setError(tr("Error initializing EdgeTX archive writer"));
return false; return false;
} }
@@ -76,12 +76,12 @@ bool EtxFormat::write(const RadioData & radioData)
} }
} }
else { else {
setError(tr("Error creating ETX file %1:\n%2.").arg(filename).arg(file.errorString())); setError(tr("Error creating EdgeTX file %1:\n%2.").arg(filename).arg(file.errorString()));
result = false; result = false;
} }
} }
else { else {
setError(tr("Error creating ETX archive")); setError(tr("Error creating EdgeTX archive"));
result = false; result = false;
} }
} }
@@ -108,7 +108,7 @@ bool EtxFormat::loadFile(QByteArray & filedata, const QString & filename)
bool EtxFormat::writeFile(const QByteArray & filedata, const QString & filename) bool EtxFormat::writeFile(const QByteArray & filedata, const QString & filename)
{ {
if (!mz_zip_writer_add_mem(&zip_archive, filename.toStdString().c_str(), filedata.data(), filedata.size(), MZ_DEFAULT_LEVEL)) { if (!mz_zip_writer_add_mem(&zip_archive, filename.toStdString().c_str(), filedata.data(), filedata.size(), MZ_DEFAULT_LEVEL)) {
setError(tr("Error adding %1 to ETX archive").arg(filename)); setError(tr("Error adding %1 to EdgeTX archive").arg(filename));
return false; return false;
} }
+5 -5
View File
@@ -40,7 +40,7 @@ bool OtxFormat::load(RadioData & radioData)
// open zip file // open zip file
memset(&zip_archive, 0, sizeof(zip_archive)); memset(&zip_archive, 0, sizeof(zip_archive));
if (!mz_zip_reader_init_mem(&zip_archive, archiveContents.data(), archiveContents.size(), 0)) { if (!mz_zip_reader_init_mem(&zip_archive, archiveContents.data(), archiveContents.size(), 0)) {
qDebug() << tr("Error opening OTX archive %1").arg(filename); qDebug() << tr("Error opening OpenTX archive %1").arg(filename);
return false; return false;
} }
@@ -55,7 +55,7 @@ bool OtxFormat::write(const RadioData & radioData)
memset(&zip_archive, 0, sizeof(zip_archive)); memset(&zip_archive, 0, sizeof(zip_archive));
if (!mz_zip_writer_init_heap(&zip_archive, 0, MZ_ALLOCATION_SIZE)) { if (!mz_zip_writer_init_heap(&zip_archive, 0, MZ_ALLOCATION_SIZE)) {
setError(tr("Error initializing OTX archive writer")); setError(tr("Error initializing OpenTX archive writer"));
return false; return false;
} }
@@ -76,12 +76,12 @@ bool OtxFormat::write(const RadioData & radioData)
} }
} }
else { else {
setError(tr("Error creating OTX file %1:\n%2.").arg(filename).arg(file.errorString())); setError(tr("Error creating OpenTX file %1:\n%2.").arg(filename).arg(file.errorString()));
result = false; result = false;
} }
} }
else { else {
setError(tr("Error creating OTX archive")); setError(tr("Error creating OpenTX archive"));
result = false; result = false;
} }
} }
@@ -108,7 +108,7 @@ bool OtxFormat::loadFile(QByteArray & filedata, const QString & filename)
bool OtxFormat::writeFile(const QByteArray & filedata, const QString & filename) bool OtxFormat::writeFile(const QByteArray & filedata, const QString & filename)
{ {
if (!mz_zip_writer_add_mem(&zip_archive, filename.toStdString().c_str(), filedata.data(), filedata.size(), MZ_DEFAULT_LEVEL)) { if (!mz_zip_writer_add_mem(&zip_archive, filename.toStdString().c_str(), filedata.data(), filedata.size(), MZ_DEFAULT_LEVEL)) {
setError(tr("Error adding %1 to OTX archive").arg(filename)); setError(tr("Error adding %1 to OpenTX archive").arg(filename));
return false; return false;
} }