mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Fixed a display issue for folders with dots in their names.
This commit is contained in:
parent
2371ef51bc
commit
9c755f2d0b
|
@ -413,9 +413,11 @@ namespace Utils
|
||||||
if (fileName == ".")
|
if (fileName == ".")
|
||||||
return fileName;
|
return fileName;
|
||||||
|
|
||||||
|
if (!Utils::FileSystem::isDirectory(_path)) {
|
||||||
// Find last '.' and erase the extension.
|
// Find last '.' and erase the extension.
|
||||||
if ((offset = fileName.find_last_of('.')) != std::string::npos)
|
if ((offset = fileName.find_last_of('.')) != std::string::npos)
|
||||||
return fileName.erase(offset);
|
return fileName.erase(offset);
|
||||||
|
}
|
||||||
|
|
||||||
// No '.' found, filename has no extension.
|
// No '.' found, filename has no extension.
|
||||||
return fileName;
|
return fileName;
|
||||||
|
|
Loading…
Reference in a new issue