parent
70a993aacb
commit
fa5a732b68
2 changed files with 9 additions and 1 deletions
|
|
@ -5511,7 +5511,11 @@ void FurnaceGUI::processDrags(int dragX, int dragY) {
|
|||
}
|
||||
|
||||
#define checkExtension(x) \
|
||||
if (fileName.size()<4 || fileName.rfind(x)!=fileName.size()-4) { \
|
||||
String lowerCase=fileName; \
|
||||
for (char& i: lowerCase) { \
|
||||
if (i>='A' && i<='Z') i+='a'-'A'; \
|
||||
} \
|
||||
if (lowerCase.size()<4 || lowerCase.rfind(x)!=lowerCase.size()-4) { \
|
||||
fileName+=x; \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue