mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
Consolidate accepted decklist file extensions (#5749)
* Consolidate accepted decklist file extensions * rename the other const
This commit is contained in:
parent
42301d4f1a
commit
0fa744f6ec
5 changed files with 17 additions and 7 deletions
|
|
@ -71,7 +71,7 @@ static QStringList getAllFiles(const QString &filePath, bool recursive)
|
|||
// QDirIterator with QDir::Files ensures only files are listed (no directories)
|
||||
auto flags =
|
||||
recursive ? QDirIterator::Subdirectories | QDirIterator::FollowSymlinks : QDirIterator::NoIteratorFlags;
|
||||
QDirIterator it(filePath, {"*.txt", "*.cod"}, QDir::Files, flags);
|
||||
QDirIterator it(filePath, DeckLoader::ACCEPTED_FILE_EXTENSIONS, QDir::Files, flags);
|
||||
|
||||
while (it.hasNext()) {
|
||||
allFiles << it.next(); // Add each file path to the list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue