Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
59696564
Unverified
Commit
59696564
authored
Apr 16, 2021
by
ebbit1q
Committed by
GitHub
Apr 16, 2021
Browse files
check multiple file extension inclusions for custom cards (#4308)
parent
ad0f313c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/pictureloader.cpp
View file @
59696564
...
...
@@ -196,8 +196,11 @@ bool PictureLoaderWorker::cardImageExistsOnDisk(QString &setName, QString &corre
QString
thisPath
(
it
.
next
());
QFileInfo
thisFileInfo
(
thisPath
);
if
(
thisFileInfo
.
isFile
()
&&
thisFileInfo
.
baseName
()
==
correctedCardname
)
if
(
thisFileInfo
.
isFile
()
&&
(
thisFileInfo
.
fileName
()
==
correctedCardname
||
thisFileInfo
.
completeBaseName
()
==
correctedCardname
||
thisFileInfo
.
baseName
()
==
correctedCardname
))
{
picsPaths
<<
thisPath
;
// Card found in the CUSTOM directory, somewhere
}
}
if
(
!
setName
.
isEmpty
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment