mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-30 14:44:31 +02:00
Include txt too
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
8ea5eac29c
commit
19b241fd31
@ -404,13 +404,17 @@ QStringList OtherLogsPage::getPaths()
|
|||||||
for (QString searchPath : m_logSearchPaths) {
|
for (QString searchPath : m_logSearchPaths) {
|
||||||
QDirIterator iterator(searchPath, QDir::Files | QDir::Readable);
|
QDirIterator iterator(searchPath, QDir::Files | QDir::Readable);
|
||||||
|
|
||||||
|
const bool isRoot = searchPath == m_basePath;
|
||||||
|
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
const QString name = iterator.next();
|
const QString name = iterator.next();
|
||||||
|
|
||||||
if (!name.endsWith(".log") && !name.endsWith(".log.gz"))
|
QString relativePath = baseDir.relativeFilePath(name);
|
||||||
|
|
||||||
|
if (!(name.endsWith(".log") || name.endsWith(".log.gz") || (!isRoot && name.endsWith(".txt"))))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
result.append(baseDir.relativeFilePath(name));
|
result.append(relativePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user