mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
fix utf8 archive that doesn't mark the file as utf8
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
3cdb464feb
commit
cf024e228f
|
|
@ -44,7 +44,11 @@ bool ArchiveReader::collectFiles(bool onlyFiles)
|
|||
|
||||
QString ArchiveReader::File::filename()
|
||||
{
|
||||
return QString::fromUtf8(archive_entry_pathname_utf8(m_entry));
|
||||
auto fileName = QString::fromUtf8(archive_entry_pathname_utf8(m_entry));
|
||||
if (fileName.isEmpty()) {
|
||||
fileName = QString::fromUtf8(archive_entry_pathname(m_entry));
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
|
||||
QByteArray ArchiveReader::File::readAll(int* outStatus)
|
||||
|
|
|
|||
Loading…
Reference in a new issue