mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55: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 == ".")
|
||||
return fileName;
|
||||
|
||||
if (!Utils::FileSystem::isDirectory(_path)) {
|
||||
// Find last '.' and erase the extension.
|
||||
if ((offset = fileName.find_last_of('.')) != std::string::npos)
|
||||
return fileName.erase(offset);
|
||||
}
|
||||
|
||||
// No '.' found, filename has no extension.
|
||||
return fileName;
|
||||
|
|
Loading…
Reference in a new issue